Skip to content

Commit

Permalink
nushell: init at 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Nov 9, 2019
1 parent 6618990 commit 1024689
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions 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";
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16568,6 +16568,10 @@ in

musl = callPackage ../os-specific/linux/musl { };

nushell = callPackage ../shells/nushell {
inherit (darwin.apple_sdk.frameworks) Security;
};

nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
else unixtools.nettools;

Expand Down

0 comments on commit 1024689

Please sign in to comment.