2022-05-04 15:31:33 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, util-linux }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hush";
|
2022-07-07 11:40:27 +00:00
|
|
|
version = "0.1.4-alpha";
|
2022-05-04 15:31:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hush-shell";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-07 11:40:27 +00:00
|
|
|
sha256 = "sha256-35iaJTA9GZLiJ8KerwzG0d5CGYo8yhBkrjPp7pDAJpc=";
|
2022-05-04 15:31:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ util-linux ];
|
2022-07-07 11:40:27 +00:00
|
|
|
cargoSha256 = "sha256-PW+T9mu6VGyCRwZSuphQfbsKeX6L2RzCrg5gt+9AeHY=";
|
2022-05-04 15:31:33 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|