forked from lix-project/lix
release.nix: Use pkgs.closureInfo for binaryTarball
pathsFromGraph is legacy since Nix 2.0.
This commit is contained in:
parent
0cb1e52052
commit
cc6712ae90
10
release.nix
10
release.nix
|
@ -115,16 +115,15 @@ let
|
||||||
let
|
let
|
||||||
toplevel = builtins.getAttr system jobs.build;
|
toplevel = builtins.getAttr system jobs.build;
|
||||||
version = toplevel.src.version;
|
version = toplevel.src.version;
|
||||||
|
installerClosureInfo = closureInfo { rootPaths = [ toplevel cacert ]; };
|
||||||
in
|
in
|
||||||
|
|
||||||
runCommand "nix-binary-tarball-${version}"
|
runCommand "nix-binary-tarball-${version}"
|
||||||
{ exportReferencesGraph = [ "closure1" toplevel "closure2" cacert ];
|
{ nativeBuildInputs = lib.optional (system != "aarch64-linux") shellcheck;
|
||||||
buildInputs = [ perl ] ++ lib.optional (system != "aarch64-linux") shellcheck;
|
|
||||||
meta.description = "Distribution-independent Nix bootstrap binaries for ${system}";
|
meta.description = "Distribution-independent Nix bootstrap binaries for ${system}";
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
storePaths=$(perl ${pathsFromGraph} ./closure1 ./closure2)
|
cp ${installerClosureInfo}/registration $TMPDIR/reginfo
|
||||||
printRegistration=1 perl ${pathsFromGraph} ./closure1 ./closure2 > $TMPDIR/reginfo
|
|
||||||
substitute ${./scripts/install-nix-from-closure.sh} $TMPDIR/install \
|
substitute ${./scripts/install-nix-from-closure.sh} $TMPDIR/install \
|
||||||
--subst-var-by nix ${toplevel} \
|
--subst-var-by nix ${toplevel} \
|
||||||
--subst-var-by cacert ${cacert}
|
--subst-var-by cacert ${cacert}
|
||||||
|
@ -150,7 +149,8 @@ let
|
||||||
--transform "s,$TMPDIR/install,$dir/install," \
|
--transform "s,$TMPDIR/install,$dir/install," \
|
||||||
--transform "s,$TMPDIR/reginfo,$dir/.reginfo," \
|
--transform "s,$TMPDIR/reginfo,$dir/.reginfo," \
|
||||||
--transform "s,$NIX_STORE,$dir/store,S" \
|
--transform "s,$NIX_STORE,$dir/store,S" \
|
||||||
$TMPDIR/install $TMPDIR/install-darwin-multi-user $TMPDIR/reginfo $storePaths
|
$TMPDIR/install $TMPDIR/install-darwin-multi-user $TMPDIR/reginfo \
|
||||||
|
$(cat ${installerClosureInfo}/store-paths)
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue