Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/label: no prepend '-' if there are no tags

authored by volth and committed by GitHub eef641aa 8cd9194a

+2 -2
+2 -2
nixos/modules/misc/label.nix
··· 65 65 # This is set here rather than up there so that changing it would 66 66 # not rebuild the manual 67 67 system.nixos.label = mkDefault (maybeEnv "NIXOS_LABEL" 68 - (concatStringsSep "-" (sort (x: y: x < y) cfg.tags) 69 - + "-" + maybeEnv "NIXOS_LABEL_VERSION" cfg.version)); 68 + (concatStringsSep "-" ((sort (x: y: x < y) cfg.tags) 69 + ++ [ (maybeEnv "NIXOS_LABEL_VERSION" cfg.version) ]))); 70 70 }; 71 71 72 72 }