about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJean-Philippe Braun <eon@patapon.info>2021-07-22 17:39:51 +0200
committerJean-Philippe Braun <eon@patapon.info>2021-07-26 16:50:38 +0200
commit2849d97ee6ed02f512f31deae27592e66f338e62 (patch)
tree41a74e821ece4e8813d4271674d3dded3a398998 /pkgs
parent91ffffd90404331e0af54fa3fb8063f2f849a321 (diff)
downloadnixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar.gz
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar.bz2
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar.lz
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar.xz
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.tar.zst
nixlib-2849d97ee6ed02f512f31deae27592e66f338e62.zip
hurl: init at 1.2.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/hurl/default.nix40
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/networking/hurl/default.nix b/pkgs/tools/networking/hurl/default.nix
new file mode 100644
index 000000000000..6ecff2e6e389
--- /dev/null
+++ b/pkgs/tools/networking/hurl/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, libxml2
+, openssl
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "hurl";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "Orange-OpenSource";
+    repo = pname;
+    rev = version;
+    sha256 = "0hbyqj794pvvfrg6jgz63mih73bnmnvgmwbv705c2238w7wsgk9w";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    libxml2
+    openssl
+  ];
+
+  # Tests require network access to a test server
+  doCheck = false;
+
+  cargoSha256 = "09ndgm6kmqwdz7yn2rqxk5xr1qkai87zm1k138cng4wq135c3w6g";
+
+  meta = with lib; {
+    description = "Command line tool that performs HTTP requests defined in a simple plain text format.";
+    homepage = "https://hurl.dev/";
+    maintainers = with maintainers; [ eonpatapon ];
+    license = licenses.asl20;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 134d26935606..d9b846d2ead5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5863,6 +5863,8 @@ in
 
   httpx = callPackage ../tools/security/httpx { };
 
+  hurl = callPackage ../tools/networking/hurl { };
+
   hub = callPackage ../applications/version-management/git-and-tools/hub { };
 
   hubicfuse = callPackage ../tools/filesystems/hubicfuse { };