From d680f541bf7a1e369cd9faade3ed5618b5917087 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 9 Feb 2017 11:21:07 -0500 Subject: [PATCH] top-level: Hack around Nix's --arg logic not handling unnamed params --- pkgs/top-level/impure.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix index 98094e93160..61ef729fa10 100644 --- a/pkgs/top-level/impure.nix +++ b/pkgs/top-level/impure.nix @@ -18,6 +18,11 @@ in # so we do it now. localSystem ? builtins.intersectAttrs { system = null; platform = null; } args +, # These are needed only because nix's `--arg` command-line logic doesn't work + # with unnamed parameters allowed by ... + system ? localSystem.system +, platform ? localSystem.platform + , # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or # $HOME/.config/nixpkgs/config.nix. config ? let