git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #141058 from marsam/update-hurl

hurl: install manpages

commit05e83ca8e96e3170a0370c1d161270fa49127846 authorMario Rodas <marsam@users.noreply.github.com> dateSat 9 Oct 2021, 08:40 (5 years ago) parentcbfe4a442f543b
1 file changed+11
pkgs/tools/networking/hurl/default.nix+11
pkgs/tools/networking/hurl/default.nix+11
@@ -3,6 +3,8 @@
33, rustPlatform
44, fetchFromGitHub
55, pkg-config
6+, python3
7+, installShellFiles
68, libxml2
79, openssl
810, curl
@@ -21,6 +23,8 @@ rustPlatform.buildRustPackage rec {
2123
2224 nativeBuildInputs = [
2325 pkg-config
26+ python3
27+ installShellFiles
2428 ];
2529
2630 buildInputs = [
@@ -35,9 +39,16 @@ rustPlatform.buildRustPackage rec {
3539
3640 cargoSha256 = "sha256-tAg3xwmh7SjJsm9r5TnhXHIDLpUQpz3YDS6gWxFgps4=";
3741
42+ postInstall = ''
43+ python ci/gen_manpage.py docs/hurl.md > hurl.1
44+ python ci/gen_manpage.py docs/hurlfmt.md > hurlfmt.1
45+ installManPage hurl.1 hurlfmt.1
46+ '';
47+
3848 meta = with lib; {
3949 description = "Command line tool that performs HTTP requests defined in a simple plain text format.";
4050 homepage = "https://hurl.dev/";
51+ changelog = "https://github.com/Orange-OpenSource/hurl/raw/${version}/CHANGELOG.md";
4152 maintainers = with maintainers; [ eonpatapon ];
4253 license = licenses.asl20;
4354 };