nushell: 0.14.0 -> 0.15.0
This commit is contained in:
parent
9fa4c48baa
commit
0cbf4c87f9
1 changed files with 3 additions and 13 deletions
|
@ -10,21 +10,20 @@
|
||||||
, AppKit
|
, AppKit
|
||||||
, Security
|
, Security
|
||||||
, withStableFeatures ? true
|
, withStableFeatures ? true
|
||||||
, withTestBinaries ? true
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "nushell";
|
pname = "nushell";
|
||||||
version = "0.14.0";
|
version = "0.15.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1g289zma19mh85xl5ffq1f3cv76piqavbhzs9m55mkg9wrhmgljd";
|
sha256 = "1s08shhg826hbpcjzlhwj0r5qqckz8rv2xjg22rz1qvsjyhkmv7r";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "16a32q2la7f4628m947dwif3j3wszsy603sj29ch6l2vdab40i3p";
|
cargoSha256 = "0lz7119znpxyaj9ac1skfbx0s0dkh3hwk00g0zjn3r6k8fh9gj4d";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ]
|
nativeBuildInputs = [ pkg-config ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
||||||
|
@ -36,19 +35,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
||||||
|
|
||||||
cargoTestFlags = lib.optional withTestBinaries "--features test-bins";
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
echo "Running cargo cargo test ${lib.strings.concatStringsSep " " cargoTestFlags} -- ''${checkFlags} ''${checkFlagsArray+''${checkFlagsArray[@]}}"
|
|
||||||
cargo test ${lib.strings.concatStringsSep " " cargoTestFlags} -- ''${checkFlags} ''${checkFlagsArray+"''${checkFlagsArray[@]}"}
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A modern shell written in Rust";
|
description = "A modern shell written in Rust";
|
||||||
homepage = "https://www.nushell.sh/";
|
homepage = "https://www.nushell.sh/";
|
||||||
|
|
Loading…
Reference in a new issue