update.py: allow to build without argument

Generate the default.nix with a default pkgs argument so that it can be
used directly.
This commit is contained in:
zimbatm 2018-06-16 11:55:51 +01:00 committed by Jörg Thalheim
parent 69ff5681d5
commit f862362090
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ pkgs }:
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs) fetchgit fetchFromGitHub callPackages;
in {

View file

@ -154,7 +154,7 @@ def generate_nix_expression(repos: List[Repo]) -> str:
joined = "\n\n".join(expressions)
return f"""
{{ pkgs }}:
{{ pkgs ? import <nixpkgs> {{}} }}:
let
inherit (pkgs) fetchgit fetchFromGitHub callPackages;
in {{