hush-shell: init at 0.1.3-alpha

This commit is contained in:
Gabriel Arazas 2022-05-04 23:31:33 +08:00
parent cca026ef10
commit 6bb5c8789e
2 changed files with 28 additions and 0 deletions

View File

@ -27,6 +27,7 @@ let
guile-config = callPackage ./guile-config.nix { }; guile-config = callPackage ./guile-config.nix { };
guile-hall = callPackage ./guile-hall.nix { }; guile-hall = callPackage ./guile-hall.nix { };
hoppscotch-cli = callPackage ./hoppscotch-cli.nix { }; hoppscotch-cli = callPackage ./hoppscotch-cli.nix { };
hush-shell = callPackage ./hush-shell.nix { };
ictree = callPackage ./ictree.nix { }; ictree = callPackage ./ictree.nix { };
junction = callPackage ./junction.nix { }; junction = callPackage ./junction.nix { };
libcs50 = callPackage ./libcs50.nix { }; libcs50 = callPackage ./libcs50.nix { };

27
pkgs/hush-shell.nix Normal file
View File

@ -0,0 +1,27 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, util-linux }:
rustPlatform.buildRustPackage rec {
pname = "hush";
version = "0.1.3-alpha";
src = fetchFromGitHub {
owner = "hush-shell";
repo = pname;
rev = "v${version}";
sha256 = "sha256-7u7vl4kDRA6/ZaouDNZb6CQQsMJoJmPAaoBcnmpenRk";
};
checkInputs = [ util-linux ];
cargoSha256 = "sha256-PGNEqGh0+/U4o84U7H59vxGPqQHYMskUAtNsKS+4xv8=";
postPatch = ''
patchShebangs ./src/runtime/tests/data/stdout-stderr.sh
'';
meta = with lib; {
homepage = "https://github.com/hush-shell/hush";
description = "Unix shell based on the Lua programming language.";
license = licenses.mit;
platform = platforms.unix;
};
}