darcs: add passthru.updateScript

This commit is contained in:
wxt 2024-09-28 20:49:58 +08:00
parent fde40f4760
commit 1896f994ad

View File

@ -7,17 +7,18 @@
diffutils,
git,
darcs,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "darcs-to-git";
version = "2015-06-04";
version = "0-unstable-2015-06-04";
src = fetchFromGitHub {
owner = "purcell";
repo = "darcs-to-git";
rev = "e5fee32495908fe0f7d700644c7b37347b7a0a5b";
sha256 = "sha256-UQI3av+0zj1SNwEonwuk5n2RjZN3+tSJFJuFCjrorFM=";
hash = "sha256-UQI3av+0zj1SNwEonwuk5n2RjZN3+tSJFJuFCjrorFM=";
};
patchPhase =
@ -39,7 +40,7 @@ stdenv.mkDerivation {
install -vD darcs-to-git "$out/bin/darcs-to-git"
'';
doCheck = true;
passthru.updateScript = unstableGitUpdater { };
checkPhase = ''
orig_dir="$(pwd)"