diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-08-03 23:03:33 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-08-03 23:03:33 +0200 |
| commit | 7b379f115c25b01aed4740ba9b36c7b2eeed01a6 (patch) | |
| tree | 863dd008273401191204ca2cb7982d3e1fbedb41 /modules/examples | |
| parent | 5a081e09ced0d5e3eb2c51a8920b0afeb5467254 (diff) | |
lnl: add <darwinpkgs>
Diffstat (limited to 'modules/examples')
| -rw-r--r-- | modules/examples/lnl.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index e0ba063..be1db06 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -244,7 +244,7 @@ } :a() { - nix repl ''${@:-<nixpkgs>} + nix repl ''${@:-<darwinpkgs>} } xi() { @@ -383,6 +383,7 @@ [ # Use local nixpkgs checkout instead of channels. "darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix" "darwin=$HOME/.nix-defexpr/darwin" + "darwinpkgs=${pkgs.lnl-darwinpkgs}" "nixpkgs=$HOME/.nix-defexpr/nixpkgs" "$HOME/.nix-defexpr/channels" "$HOME/.nix-defexpr" @@ -403,6 +404,16 @@ git "$@" rev-parse origin/master ''; + lnl-darwinpkgs = super.writeTextFile { + name = "darwinpkgs"; + destination = "/default.nix"; + text = '' + { ... }@args: + + (import <darwin> args).pkgs + ''; + }; + lnl-zsh-completions = super.runCommandNoCC "lnl-zsh-completions-0.0.0" { preferLocalBuild = true; } '' |
