diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-13 00:43:13 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-13 02:37:08 +0100 |
commit | be844a34b7a55f6ee4f38072422882ea7b592409 (patch) | |
tree | 0afd7cacbff38c8b001bce68cbf960b9f72e6345 /pkgs/tools/networking/xh | |
parent | 5852a21819542e6809f68ba5a798600e69874e76 (diff) | |
download | nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar.gz nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar.bz2 nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar.lz nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar.xz nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.tar.zst nixpkgs-be844a34b7a55f6ee4f38072422882ea7b592409.zip |
xh: 0.5.0 -> 0.7.0, rename from ht-rust
Diffstat (limited to 'pkgs/tools/networking/xh')
-rw-r--r-- | pkgs/tools/networking/xh/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/xh/default.nix b/pkgs/tools/networking/xh/default.nix new file mode 100644 index 00000000000..b7246959017 --- /dev/null +++ b/pkgs/tools/networking/xh/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }: + +rustPlatform.buildRustPackage rec { + pname = "xh"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "ducaale"; + repo = "xh"; + rev = "v${version}"; + sha256 = "0b7q0xbfbrhvpnxbm9bd1ncdza9k2kcmcir3qhqzb2pgsb5b5njx"; + }; + + cargoSha256 = "02fgqys9qf0jzs2n230pyj151v6xbm6wm2rd9qm5gsib6zaq7gfa"; + + buildInputs = lib.optional stdenv.isDarwin Security; + + checkFlagsArray = [ "--skip=basic_options" ]; + + doInstallCheck = true; + postInstallCheck = '' + $out/bin/xh --help > /dev/null + ''; + + meta = with lib; { + description = "Yet another HTTPie clone in Rust"; + homepage = "https://github.com/ducaale/xh"; + license = licenses.mit; + maintainers = with maintainers; [ payas SuperSandro2000 ]; + }; +} |