2021-07-22 16:39:51 +01:00
|
|
|
{ lib
|
2021-10-08 07:35:54 +01:00
|
|
|
, stdenv
|
2021-07-22 16:39:51 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, openssl
|
2021-10-08 07:35:54 +01:00
|
|
|
, 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
|
2021-10-08 07:35:54 +01:00
|
|
|
] ++ 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;
|
|
|
|
};
|
|
|
|
}
|