3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/hurl/default.nix

45 lines
873 B
Nix
Raw Normal View History

2021-07-22 16:39:51 +01:00
{ lib
, stdenv
2021-07-22 16:39:51 +01:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, libxml2
, openssl
, curl
2021-07-22 16:39:51 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "hurl";
2021-09-14 12:20:32 +01:00
version = "1.3.1";
2021-07-22 16:39:51 +01:00
src = fetchFromGitHub {
owner = "Orange-OpenSource";
repo = pname;
rev = version;
2021-09-14 12:20:32 +01:00
sha256 = "sha256-BmBqFJ64Nolq+eGZ5D3LQU3Ek2Gs+HpH/bptCQScbIg=";
2021-07-22 16:39:51 +01:00
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libxml2
openssl
] ++ lib.optionals stdenv.isDarwin [
curl
2021-07-22 16:39:51 +01:00
];
# Tests require network access to a test server
doCheck = false;
2021-09-14 12:20:32 +01:00
cargoSha256 = "sha256-tAg3xwmh7SjJsm9r5TnhXHIDLpUQpz3YDS6gWxFgps4=";
2021-07-22 16:39:51 +01:00
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;
};
}