mir: hardcode update script file path

Replace `__curPos.file` computation with a hardcoded path. The update
script already runs from the nixpkgs root, so the path is stable.
This commit is contained in:
Philip Taron 2026-02-16 12:42:56 -08:00
commit 4799c4d297
No known key found for this signature in database

View file

@ -272,7 +272,7 @@ stdenv.mkDerivation (
# Have to double-wrap it...
installPhase = oa.installPhase + ''
wrapProgram $out/bin/update-source-version \
--add-flag '--file=${lib.strings.removeSuffix "/common.nix" __curPos.file}/default.nix'
--add-flag '--file=pkgs/servers/mir/default.nix'
'';
});
in