tirith: 0.2.12 -> 0.3.1 (#518701)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-13 18:00:46 +00:00
committed by GitHub
+9 -3
View File
@@ -8,21 +8,26 @@
}:
rustPlatform.buildRustPackage (final: {
pname = "tirith";
version = "0.2.12";
version = "0.3.1";
src = fetchFromGitHub {
owner = "sheeki03";
repo = "tirith";
tag = "v${final.version}";
hash = "sha256-O0IRWiNib7sc6y17NdHcFfxKW5M37l/87kBEAJiTMWs=";
hash = "sha256-RdStW5ubqypdmFqNk9DHtUp5jHnZdXiWW/lAlSaBb3c=";
};
cargoHash = "sha256-mIQ1zvAh+a7EyyNoYEZFdYUaQ9drIE2WfHmFHvgFUFM=";
cargoHash = "sha256-/V2vv02x0zSsJCcJMSttG9eekRZMK7KTk6m2VYePFa8=";
cargoBuildFlags = [
"-p"
"tirith"
];
postPatch = ''
# The bash_preexec_enforce tests require a shell with job control
rm crates/tirith/tests/bash_preexec_enforce.rs
'';
checkFlags = [
# requires a fully functional shell environment, generating init scripts needs a patch under nix to work at build time
"--skip=init_bash_output"
@@ -34,6 +39,7 @@ rustPlatform.buildRustPackage (final: {
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
__darwinAllowLocalNetworking = true;
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd tirith \