From 6bb5c8789e90de643eb6dc0f60d25c9970f5134f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 4 May 2022 23:31:33 +0800 Subject: [PATCH] hush-shell: init at 0.1.3-alpha --- pkgs/default.nix | 1 + pkgs/hush-shell.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/hush-shell.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 31c33bba..cc818112 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -27,6 +27,7 @@ let guile-config = callPackage ./guile-config.nix { }; guile-hall = callPackage ./guile-hall.nix { }; hoppscotch-cli = callPackage ./hoppscotch-cli.nix { }; + hush-shell = callPackage ./hush-shell.nix { }; ictree = callPackage ./ictree.nix { }; junction = callPackage ./junction.nix { }; libcs50 = callPackage ./libcs50.nix { }; diff --git a/pkgs/hush-shell.nix b/pkgs/hush-shell.nix new file mode 100644 index 00000000..0319ba9d --- /dev/null +++ b/pkgs/hush-shell.nix @@ -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; + }; +}