uutils-diffutils: 0.4.2 -> 0.5.0, add installCheckPhase, fix meta.changelog (#476602)
This commit is contained in:
@@ -7,16 +7,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "uutils-diffutils";
|
||||
version = "0.4.2";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "uutils";
|
||||
repo = "diffutils";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-IAgrCkhUC2Tkh+OM1lorpmD0GpsHUauLgU0KcmsvKb4=";
|
||||
hash = "sha256-YZAa4A5fvW8BcaZn4xSVbSnzyoAaKKqBzpFOjnSRnc4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-SiZIp0rJXl0ZqKaxLPtV1nypxSqKXW+NoFLxCVpW4OY=";
|
||||
cargoHash = "sha256-jX3uuUopNaVi+XNskBUPzITlJrsVkXWR8LP7PTuwMm8=";
|
||||
|
||||
checkFlags = [
|
||||
# called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
|
||||
@@ -25,12 +25,24 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
"--skip=ed_diff::tests::test_permutations_empty_lines"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
postInstall = ''
|
||||
ln -s $out/bin/diffutils $out/bin/cmp
|
||||
ln -s $out/bin/diffutils $out/bin/diff
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/diffutils 2>/dev/null | head -1 | grep -F 'diffutils ${finalAttrs.version}'
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/uutils/diffutils/releases/tag/${finalAttrs.version}";
|
||||
changelog = "https://github.com/uutils/diffutils/releases/tag/v${finalAttrs.version}";
|
||||
description = "Drop-in replacement of diffutils in Rust";
|
||||
homepage = "https://github.com/uutils/diffutils";
|
||||
license = lib.licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user