Merge pull request #141058 from marsam/update-hurl

hurl: install manpages
This commit is contained in:
Mario Rodas 2021-10-09 08:40:41 -05:00 committed by GitHub
commit 05e83ca8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};