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:
parent
807872e8f3
commit
58e4f7d0cf
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue