summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-25 15:56:00 +0100
committerGitHub <noreply@github.com>2021-03-25 15:56:00 +0100
commitf4b203985a6e28aeecf181ef2d0cb1eb91ac6c15 (patch)
tree2b2d64e3702767fb5b8728f02d434aa14694f148 /pkgs/tools
parentc42c182727c6da57fd26295b1628c8e64bbc7a9e (diff)
parente46f1a6f65667d8cd89c59ba66eaadc18a838ac1 (diff)
Merge pull request #117097 from payasrelekar/master
xh: 0.7.0 -> 0.9.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/xh/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/tools/networking/xh/default.nix b/pkgs/tools/networking/xh/default.nix
index 1d1736cd816f..33f3e394d718 100644
--- a/pkgs/tools/networking/xh/default.nix
+++ b/pkgs/tools/networking/xh/default.nix
@@ -1,22 +1,31 @@
-{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }:
+{ stdenv, lib, openssl, pkg-config, rustPlatform, fetchFromGitHub, Security
+, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "xh";
- version = "0.7.0";
+ version = "0.9.1";
src = fetchFromGitHub {
owner = "ducaale";
repo = "xh";
rev = "v${version}";
- sha256 = "0b7q0xbfbrhvpnxbm9bd1ncdza9k2kcmcir3qhqzb2pgsb5b5njx";
+ sha256 = "pRVlcaPfuO7IMH2p0AQfVrCIXCRyF37WIirOJQkcAJE=";
};
- cargoSha256 = "02fgqys9qf0jzs2n230pyj151v6xbm6wm2rd9qm5gsib6zaq7gfa";
+ cargoSha256 = "dXo1+QvCW3CWN2OhsqGh2Q1xet6cmi2xVy1Xk7s1YR8=";
- buildInputs = lib.optional stdenv.isDarwin Security;
+ nativeBuildInputs = [ pkg-config ];
+
+ buildInputs = if stdenv.isDarwin then [ Security libiconv ] else [ openssl ];
+
+ # Get openssl-sys to use pkg-config
+ OPENSSL_NO_VENDOR = 1;
checkFlagsArray = [ "--skip=basic_options" ];
+ # Nix build happens in sandbox without internet connectivity
+ # disable tests as some of them require internet due to nature of application
+ doCheck = false;
doInstallCheck = true;
postInstallCheck = ''
$out/bin/xh --help > /dev/null