depot/third_party/nixpkgs/pkgs/tools/networking/hurl/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

52 lines
1.1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, libxml2
, openssl
, stdenv
, curl
}:
rustPlatform.buildRustPackage rec {
pname = "hurl";
version = "4.3.0";
src = fetchFromGitHub {
owner = "Orange-OpenSource";
repo = pname;
rev = version;
hash = "sha256-gSkiNwRR47CZ1YjVa5o8EByCzWBAYPfsMRXydTwFwp0=";
};
cargoHash = "sha256-dY00xcMnOCWhdRzC+3mTHSIqeYEPUDBJeYd/GiLM/38=";
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";
};
}