mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-13 04:04:35 +03:00
eval-with-configuration: Don't rely on <nixpkgs>
anymore
This commit is contained in:
parent
97fe9648a5
commit
9a0fdf4e71
@ -4,7 +4,7 @@
|
||||
# This is meant for use internally by Mobile NixOS, the interface here
|
||||
# should not be assumed to be *stable*.
|
||||
{
|
||||
pkgs ? import <nixpkgs> {}
|
||||
pkgs ? null
|
||||
# The identifier of the device this should be built for.
|
||||
# (This gets massaged later on)
|
||||
, device ? null
|
||||
@ -13,6 +13,7 @@
|
||||
, additionalConfiguration ? {}
|
||||
, additionalHelpInstructions ? ""
|
||||
}:
|
||||
if pkgs == null then (builtins.throw "The `pkgs` argument needs to be provided to eval-with-configuration.nix") else
|
||||
let
|
||||
inherit (pkgs.lib) optionalString strings;
|
||||
inherit (strings) concatStringsSep stringAsChars;
|
||||
|
Loading…
Reference in New Issue
Block a user