nushell: 0.19.0 -> 0.20.0
https://www.nushell.sh/blog/2020/09/22/nushell_0_20.html
This commit is contained in:
parent
582f5cea5f
commit
f31108fa22
@ -3,6 +3,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, openssl
|
, openssl
|
||||||
|
, zlib
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, python3
|
, python3
|
||||||
, xorg
|
, xorg
|
||||||
@ -14,35 +15,36 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "nushell";
|
pname = "nushell";
|
||||||
version = "0.19.0";
|
version = "0.20.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "08r6f71cy4j22k0mllm134x4dfixaircpaz5arrj93xsbp38nk92";
|
sha256 = "038c61605b92a97h84hlifwks0q6miv6rn7spr5h6h2nwvaqlyk6";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "15kvl490abxdv6706zs7pv0q5fhghmdvlfbn19037sldkcsfl86b";
|
cargoSha256 = "1vr0pqcv9gm4cwlkd06672jzz9rbm77c6j5r05waypc1lv4ln2cg";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ]
|
nativeBuildInputs = [ pkg-config ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ python3 ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv Security ]
|
++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
++ lib.optionals (withStableFeatures && stdenv.isLinux) [ xorg.libX11 ]
|
||||||
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
|
++ lib.optionals (withStableFeatures && stdenv.isDarwin) [ AppKit ];
|
||||||
|
|
||||||
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
cargoBuildFlags = lib.optional withStableFeatures "--features stable";
|
||||||
|
|
||||||
preCheck = ''
|
# Remove after https://github.com/NixOS/nixpkgs/pull/97000 lands into master
|
||||||
export HOME=$TMPDIR
|
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
unset SDKROOT
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
echo "Running cargo test"
|
echo "Running cargo test"
|
||||||
cargo test
|
HOME=$TMPDIR cargo test
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user