From 7b379f115c25b01aed4740ba9b36c7b2eeed01a6 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 3 Aug 2018 23:03:33 +0200 Subject: [PATCH] lnl: add --- modules/examples/lnl.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 ''${@:-} + nix repl ''${@:-} } 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 args).pkgs + ''; + }; + lnl-zsh-completions = super.runCommandNoCC "lnl-zsh-completions-0.0.0" { preferLocalBuild = true; } ''