2023-07-18 01:18:25 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, toybox
|
|
|
|
}:
|
2022-05-04 15:31:33 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hush";
|
2023-07-18 01:18:25 +00:00
|
|
|
version = "unstable-2023-07-18";
|
2022-05-04 15:31:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hush-shell";
|
|
|
|
repo = pname;
|
2023-07-18 01:18:25 +00:00
|
|
|
rev = "01b4303d86048c36c2bc196d8a6fba1bddfa0811";
|
|
|
|
hash = "sha256-MH7Qb5FgAvfgfuYihomYDHA456/WU1zf5P9mneB5Og4=";
|
2022-05-04 15:31:33 +00:00
|
|
|
};
|
|
|
|
|
2023-07-18 01:18:25 +00:00
|
|
|
cargoSha256 = "sha256-iN8qOZoTJwvxKQT0Plm0SjwaBUE+vSM0r9FERr4smeo=";
|
2022-05-04 15:31:33 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./src/runtime/tests/data/stdout-stderr.sh
|
|
|
|
'';
|
|
|
|
|
2023-07-18 01:18:25 +00:00
|
|
|
checkInputs = [ toybox ];
|
|
|
|
checkFlags = [
|
|
|
|
"--skip=tests::test_token_kind_size"
|
|
|
|
"--skip=tests::test_positive"
|
|
|
|
];
|
|
|
|
|
2022-05-04 15:31:33 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|