xh: 0.7.0 -> 0.9.1
This commit is contained in:
parent
27f1e2b7b1
commit
e46f1a6f65
1 changed files with 14 additions and 5 deletions
|
@ -1,22 +1,31 @@
|
||||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, Security }:
|
{ stdenv, lib, openssl, pkg-config, rustPlatform, fetchFromGitHub, Security
|
||||||
|
, libiconv }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "xh";
|
pname = "xh";
|
||||||
version = "0.7.0";
|
version = "0.9.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ducaale";
|
owner = "ducaale";
|
||||||
repo = "xh";
|
repo = "xh";
|
||||||
rev = "v${version}";
|
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" ];
|
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;
|
doInstallCheck = true;
|
||||||
postInstallCheck = ''
|
postInstallCheck = ''
|
||||||
$out/bin/xh --help > /dev/null
|
$out/bin/xh --help > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue