My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/shells/nushell/default.nix

43 lines
865 B

{ stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, pkg-config
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "nushell";
version = "0.5.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "0_5_0";
sha256 = "1s60w29c8sv0a4nmpggls9pkqyfrwwxjzd65p68d1xxxsdb36rzj";
};
cargoSha256 = "0b8alc3si6y4xmn812izknbkfkz64kz7kcnq4xaqws6iqn7pqidp";
nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
preCheck = ''
export HOME=$TMPDIR
'';
meta = with stdenv.lib; {
description = "A modern shell written in Rust";
homepage = "https://www.nushell.sh/";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
passthru = {
shellPath = "/bin/nu";
};
}