nixos-config/pkgs/hush-shell.nix

31 lines
828 B
Nix
Raw Normal View History

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