1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

use nixpkgsVersion as default system.darwinLabel

This commit is contained in:
Daiderd Jordan 2016-12-19 21:09:10 +01:00
parent 807872e8f3
commit 58e4f7d0cf
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -37,9 +37,9 @@ in
'';
};
system.nixdarwinLabel = mkOption {
system.darwinLabel = mkOption {
type = types.str;
default = "16.09";
default = pkgs.lib.nixpkgsVersion;
};
};
@ -47,12 +47,12 @@ in
config = {
system.build.toplevel = stdenvNoCC.mkDerivation {
name = "nixdarwin-system-${cfg.nixdarwinLabel}";
name = "darwin-system-${cfg.darwinLabel}";
preferLocalBuild = true;
activationScript = cfg.activationScripts.script.text;
activationUserScript = cfg.activationScripts.userScript.text;
inherit (cfg) nixdarwinLabel;
inherit (cfg) darwinLabel;
buildCommand = ''
mkdir $out
@ -77,7 +77,7 @@ in
echo -n "$systemConfig" > $out/systemConfig
echo -n "$nixdarwinLabel" > $out/nixdarwin-version
echo -n "$darwinLabel" > $out/darwin-version
echo -n "$system" > $out/system
'';
};