summary refs log tree commit diff
path: root/pkgs/development/tools/dot-http
diff options
context:
space:
mode:
authorMassimo Redaelli <massimo@typish.io>2020-08-28 13:58:09 +0200
committerMassimo Redaelli <massimo@typish.io>2020-08-29 14:54:29 +0200
commit73da67e5c1a232a70680fca51e47c613431a84c6 (patch)
tree6e4b3821a9100732b26fbda7c189abd53559d283 /pkgs/development/tools/dot-http
parenta19b2b4c03c1c409d7d505b95741a7c9355884bc (diff)
downloadnixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar.gz
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar.bz2
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar.lz
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar.xz
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.tar.zst
nixpkgs-73da67e5c1a232a70680fca51e47c613431a84c6.zip
dot-http: init at 0.2.0
Diffstat (limited to 'pkgs/development/tools/dot-http')
-rw-r--r--pkgs/development/tools/dot-http/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/dot-http/default.nix b/pkgs/development/tools/dot-http/default.nix
new file mode 100644
index 00000000000..1c81a4145d2
--- /dev/null
+++ b/pkgs/development/tools/dot-http/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, libiconv, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "dot-http";
+  version = "0.2.0";
+
+  src = fetchFromGitHub {
+    owner = "bayne";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1s2q4kdldhb5gd14g2h6vzrbjgbbbs9zp2dgmna0rhk1h4qv0mml";
+  };
+
+  cargoSha256 = "0an3hskq1k2j4gdn8wvhfb9pqsc34ibs5bv7sjznkp5jma6fdr9w";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [
+    libiconv Security
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Text-based scriptable HTTP client";
+    homepage = "https://github.com/bayne/dot-http";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ mredaelli ];
+  };
+}