nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, libiconv, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "dot-http";
5 version = "0.2.0";
6
7 src = fetchFromGitHub {
8 owner = "bayne";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1s2q4kdldhb5gd14g2h6vzrbjgbbbs9zp2dgmna0rhk1h4qv0mml";
12 };
13
14 cargoSha256 = "013jyp2bgmssj1c18lm8jkb6q6jlhdrqzmyri6k5lgmfmb9dvkii";
15
16 nativeBuildInputs = [ pkg-config ];
17
18 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
19 libiconv Security
20 ];
21
22 meta = with lib; {
23 description = "Text-based scriptable HTTP client";
24 homepage = "https://github.com/bayne/dot-http";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ mredaelli ];
27 };
28}