summary refs log tree commit diff
path: root/pkgs/tools/networking/hurl
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-10-08 20:53:02 -0500
committerMario Rodas <marsam@users.noreply.github.com>2021-10-08 20:53:02 -0500
commit42f543b2173b3772c1f156feb6075acc805a5c0d (patch)
tree17497b44255982d283750a795c278e2485ac900c /pkgs/tools/networking/hurl
parenteb88cf6eed8d910f91974ad5810f12b6097ac92f (diff)
downloadnixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar.gz
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar.bz2
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar.lz
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar.xz
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.tar.zst
nixpkgs-42f543b2173b3772c1f156feb6075acc805a5c0d.zip
hurl: install manpages
Diffstat (limited to 'pkgs/tools/networking/hurl')
-rw-r--r--pkgs/tools/networking/hurl/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/networking/hurl/default.nix b/pkgs/tools/networking/hurl/default.nix
index 1bd64250ae2..0843ba3a756 100644
--- a/pkgs/tools/networking/hurl/default.nix
+++ b/pkgs/tools/networking/hurl/default.nix
@@ -3,6 +3,8 @@
 , rustPlatform
 , fetchFromGitHub
 , pkg-config
+, python3
+, installShellFiles
 , libxml2
 , openssl
 , curl
@@ -21,6 +23,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [
     pkg-config
+    python3
+    installShellFiles
   ];
 
   buildInputs = [
@@ -35,9 +39,16 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-tAg3xwmh7SjJsm9r5TnhXHIDLpUQpz3YDS6gWxFgps4=";
 
+  postInstall = ''
+    python ci/gen_manpage.py docs/hurl.md > hurl.1
+    python ci/gen_manpage.py docs/hurlfmt.md > hurlfmt.1
+    installManPage hurl.1 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/raw/${version}/CHANGELOG.md";
     maintainers = with maintainers; [ eonpatapon ];
     license = licenses.asl20;
   };