mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
Disable setVersionLayer
This sets .version to finalAttrs.version, so we would end up with `nix --version` showing `nix (Determinate Nix 0.37.2) 0.37.2`.
This commit is contained in:
parent
5fc89adf6c
commit
e71a498e25
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ let
|
||||||
exts: userFn: stdenv.mkDerivation (lib.extends (lib.composeManyExtensions exts) userFn);
|
exts: userFn: stdenv.mkDerivation (lib.extends (lib.composeManyExtensions exts) userFn);
|
||||||
|
|
||||||
setVersionLayer = finalAttrs: prevAttrs: {
|
setVersionLayer = finalAttrs: prevAttrs: {
|
||||||
|
/*
|
||||||
preConfigure =
|
preConfigure =
|
||||||
prevAttrs.prevAttrs or ""
|
prevAttrs.prevAttrs or ""
|
||||||
+
|
+
|
||||||
|
@ -59,6 +60,7 @@ let
|
||||||
chmod u+w ./.version
|
chmod u+w ./.version
|
||||||
echo ${finalAttrs.version} > ./.version
|
echo ${finalAttrs.version} > ./.version
|
||||||
'';
|
'';
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
localSourceLayer =
|
localSourceLayer =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue