From e4c3940e2d00eab06ba5aa0f23fbbc2181d1b3ea Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 18 Oct 2020 17:45:17 +0200 Subject: [PATCH] add --impure flag for flakes --- pkgs/nix-tools/darwin-rebuild.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index c3251032..6d67c206 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -11,7 +11,8 @@ showSyntax() { echo " [-Q] [{--max-jobs | -j} number] [--cores number] [--dry-run]" >&1 echo " [--keep-going] [-k] [--keep-failed] [-K] [--fallback] [--show-trace]" >&2 echo " [-I path] [--option name value] [--arg name value] [--argstr name value]" >&2 - echo " [--flake flake] [--update-input input flake] [--recreate-lock-file] [--no-update-lock-file] ..." >&2 + echo " [--flake flake] [--update-input input flake] [--impure] [--recreate-lock-file]" + echo " [--no-update-lock-file] ..." >&2 exec man darwin-rebuild exit 1 } @@ -62,7 +63,7 @@ while [ $# -gt 0 ]; do flake=$1 shift 1 ;; - --recreate-lock-file|--no-update-lock-file|--no-write-lock-file|--no-registries|--commit-lock-file) + --impure|--recreate-lock-file|--no-update-lock-file|--no-write-lock-file|--no-registries|--commit-lock-file) extraLockFlags+=("$i") ;; --update-input)