diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-11-09 04:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-11-09 04:20:00 -0500 |
commit | 10246893188f6aff33a251f7febdf04a3c4e5b8b (patch) | |
tree | 276edcdd59c4c1160d769a81def8754629e16492 /pkgs/shells | |
parent | 6618990561d9552d254ae0cb98bed5d9a3bf7e2b (diff) | |
download | nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar.gz nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar.bz2 nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar.lz nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar.xz nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.tar.zst nixpkgs-10246893188f6aff33a251f7febdf04a3c4e5b8b.zip |
nushell: init at 0.5.0
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/nushell/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix new file mode 100644 index 00000000000..6e075b7ceee --- /dev/null +++ b/pkgs/shells/nushell/default.nix @@ -0,0 +1,42 @@ +{ 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"; + }; +} |