From 2be774ccfa90696e6e798928c5cf253de38e9e00 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Oct 2013 14:05:34 +0200 Subject: [PATCH] Set .version-suffix properly when building from Git --- nixos/modules/installer/tools/nixos-rebuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh index 8734cb273d4..0a199fb1542 100644 --- a/nixos/modules/installer/tools/nixos-rebuild.sh +++ b/nixos/modules/installer/tools/nixos-rebuild.sh @@ -157,10 +157,10 @@ fi # Update the version suffix if we're building from Git (so that # nixos-version shows something useful). -if nixos=$(nix-instantiate --find-file nixos "${extraBuildFlags[@]}"); then - suffix=$(@shell@ $nixos/modules/installer/tools/get-version-suffix "${extraBuildFlags[@]}") +if nixpkgs=$(nix-instantiate --find-file nixpkgs "${extraBuildFlags[@]}"); then + suffix=$(@shell@ $nixpkgs/nixos/modules/installer/tools/get-version-suffix "${extraBuildFlags[@]}") if [ -n "$suffix" ]; then - echo -n "$suffix" > "$nixos/.version-suffix" || true + echo -n "$suffix" > "$nixpkgs/.version-suffix" || true fi fi