Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
throw"applyPatches: please supply a `name` argument because a default name can only be computed when the `src` is a path or is an attribute set with a `name` attribute."
)
+"-patched",
patches?[],
prePatch?"",
postPatch?"",
...
}@args:
assertlib.assertMsg(
@@ -1034,55 +1043,52 @@ rec {
assertlib.assertMsg(
!args?passthru
)"applyPatches will not merge 'passthru', change it in 'src' instead";
ifpatches==[]&&prePatch==""&&postPatch==""then
src# nothing to do, so use original src to avoid additional drv
throw"applyPatches: please supply a `name` argument because a default name can only be computed when the `src` is a path or is an attribute set with a `name` attribute."
);
# Manually setting `name` can mess up positioning.
# This should fix it.
pos=builtins.unsafeGetAttrPos"src"args;
inherit
name
src
patches
prePatch
postPatch
;
preferLocalBuild=true;
allowSubstitutes=false;
dontConfigure=true;
dontBuild=true;
doCheck=false;
phases="unpackPhase patchPhase installPhase";
installPhase="cp -R ./ $out";
# passthru the git and hash info for nix-update, as well