aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/shells/nushell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/shells/nushell/default.nix')
-rw-r--r--nixpkgs/pkgs/shells/nushell/default.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/shells/nushell/default.nix b/nixpkgs/pkgs/shells/nushell/default.nix
index ecef2fc436e..09d2f6aac1a 100644
--- a/nixpkgs/pkgs/shells/nushell/default.nix
+++ b/nixpkgs/pkgs/shells/nushell/default.nix
@@ -10,21 +10,20 @@
, AppKit
, Security
, withStableFeatures ? true
-, withTestBinaries ? true
}:
rustPlatform.buildRustPackage rec {
pname = "nushell";
- version = "0.14.0";
+ version = "0.19.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
- sha256 = "1g289zma19mh85xl5ffq1f3cv76piqavbhzs9m55mkg9wrhmgljd";
+ sha256 = "08r6f71cy4j22k0mllm134x4dfixaircpaz5arrj93xsbp38nk92";
};
- cargoSha256 = "16a32q2la7f4628m947dwif3j3wszsy603sj29ch6l2vdab40i3p";
+ cargoSha256 = "15kvl490abxdv6706zs7pv0q5fhghmdvlfbn19037sldkcsfl86b";
nativeBuildInputs = [ pkg-config ]
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
@@ -36,16 +35,14 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
- cargoTestFlags = lib.optional withTestBinaries "--features test-bins";
-
preCheck = ''
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[@]}"}
+ echo "Running cargo test"
+ cargo test
runHook postCheck
'';
@@ -53,8 +50,8 @@ rustPlatform.buildRustPackage rec {
description = "A modern shell written in Rust";
homepage = "https://www.nushell.sh/";
license = licenses.mit;
- maintainers = with maintainers; [ filalex77 marsam ];
- platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
+ maintainers = with maintainers; [ filalex77 johntitor marsam ];
+ platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
};
passthru = {