Files
nixpkgs/pkgs/by-name/hu/hurl/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.5 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
installShellFiles,
libxml2,
openssl,
curl,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "hurl";
version = "7.0.0";
src = fetchFromGitHub {
owner = "Orange-OpenSource";
repo = "hurl";
tag = version;
hash = "sha256-dmPXI2RHEi/wcdVVwBRtBgNXyBXFnm44236pqYjxgBs=";
};
cargoHash = "sha256-1bZaSdMJe39cDEOoqW82zS5NvOlZDGe1ia56BjXddyc=";
nativeBuildInputs = [
pkg-config
installShellFiles
rustPlatform.bindgenHook
];
buildInputs = [
libxml2
openssl
curl
];
nativeInstallCheckInputs = [ versionCheckHook ];
# The actual tests require network access to a test server, but we can run an install check
doCheck = false;
doInstallCheck = true;
postInstall = ''
installManPage docs/manual/hurl.1 docs/manual/hurlfmt.1
installShellCompletion --cmd hurl \
--bash completions/hurl.bash \
--zsh completions/_hurl \
--fish completions/hurl.fish
installShellCompletion --cmd hurlfmt \
--zsh completions/_hurlfmt
'';
meta = {
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 lib.maintainers; [
eonpatapon
figsoda
];
license = lib.licenses.asl20;
mainProgram = "hurl";
};
}