Merge pull request #22592 from Ericson2314/localSystem-fix
top-level: Hack around Nix's --arg logic not handling unnamed params
commit18da9bc809879de465aef97f2707aff4337e53b8
authorJohn Ericson <Ericson2314@yahoo.com>
dateThu 9 Feb 2017, 15:35 (10 years ago)
parentb1e254ad680f54
pkgs/top-level/impure.nix+5
@@ -18,6 +18,11 @@ in
1818 # so we do it now.
1919 localSystem ? builtins.intersectAttrs { system = null; platform = null; } args
2020
21+, # These are needed only because nix's `--arg` command-line logic doesn't work
22+ # with unnamed parameters allowed by ...
23+ system ? localSystem.system
24+, platform ? localSystem.platform
25+
2126, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
2227 # $HOME/.config/nixpkgs/config.nix.
2328 config ? let