Fix setting of .version-suffix
This commit is contained in:
parent
95c98166ec
commit
a7824368c2
|
@ -85,13 +85,13 @@ in {
|
||||||
expr = builtins.readFile lib/channel-expr.nix;
|
expr = builtins.readFile lib/channel-expr.nix;
|
||||||
|
|
||||||
distPhase = ''
|
distPhase = ''
|
||||||
|
rm -rf .git
|
||||||
echo -n $VERSION_SUFFIX > .version-suffix
|
echo -n $VERSION_SUFFIX > .version-suffix
|
||||||
releaseName=nixos-$VERSION$VERSION_SUFFIX
|
releaseName=nixos-$VERSION$VERSION_SUFFIX
|
||||||
mkdir -p $out/tarballs
|
mkdir -p $out/tarballs
|
||||||
mkdir ../$releaseName
|
mkdir ../$releaseName
|
||||||
cp -prd ${nixpkgs} ../$releaseName/nixpkgs
|
cp -prd . ../$releaseName/nixpkgs
|
||||||
chmod -R u+w ../$releaseName
|
chmod -R u+w ../$releaseName
|
||||||
rm -rf .git
|
|
||||||
ln -s nixpkgs/nixos ../$releaseName/nixos
|
ln -s nixpkgs/nixos ../$releaseName/nixos
|
||||||
echo "$expr" > ../$releaseName/default.nix
|
echo "$expr" > ../$releaseName/default.nix
|
||||||
NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --xml \* > /dev/null
|
NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --xml \* > /dev/null
|
||||||
|
|
Loading…
Reference in New Issue