1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-08 18:20:48 +00:00

lnl: add <darwinpkgs>

This commit is contained in:
Daiderd Jordan 2018-08-03 23:03:33 +02:00
parent 5a081e09ce
commit 7b379f115c
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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; }
''