default.nix: pass system argument to nixpkgs

This commit is contained in:
Michele Guerini Rocco 2024-12-12 03:13:17 +01:00
parent c0b313a0f0
commit 3f75cbd357
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -1,5 +1,6 @@
{
static ? false,
static ? false
, system ? builtins.currentSystem
}:
let
@ -22,7 +23,7 @@ let
[ "default.nix" ".git" ]
++ lib.splitString "\n" (lib.readFile ./.gitignore));
inherit (import nixpkgs { }) lib pkgs;
inherit (import nixpkgs { inherit system; }) lib pkgs;
python = pkgs.python3;