blob: 69c09515d2b5c5ce5f8b7fb913b5ec9e875786ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, libxml2
, openssl
, stdenv
, curl
}:
rustPlatform.buildRustPackage rec {
pname = "hurl";
version = "4.1.0";
src = fetchFromGitHub {
owner = "Orange-OpenSource";
repo = pname;
rev = version;
hash = "sha256-JsgAdLjDQQkLyLFoZCVG2jZ8vQDaGUPtPmHYAcwADQg";
};
cargoHash = "sha256-IE9c57rj8EANyj4KmbyagafJyMovzHOhp0PFCQBzqdA=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
libxml2
openssl
] ++ lib.optionals stdenv.isDarwin [
curl
];
# Tests require network access to a test server
doCheck = false;
postInstall = ''
installManPage docs/manual/hurl.1 docs/manual/hurlfmt.1
'';
meta = with lib; {
description = "Command line tool that performs HTTP requests defined in a simple plain text format.";
homepage = "https://hurl.dev/";
changelog = "https://github.com/Orange-OpenSource/hurl/blob/${version}/CHANGELOG.md";
maintainers = with maintainers; [ eonpatapon figsoda ];
license = licenses.asl20;
mainProgram = "hurl";
};
}
|