From 472bcf1565a7d8558b8dacfd4ee78a19112c8a60 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 11 May 2022 10:01:12 +0200 Subject: [PATCH] pkgs-unstable: inherit system from stable pkgs Previously, `builtins.defaultSystem` was implicitly used. This fixes NixOS system builds for systems other than `defaultSystem`. --- pkgs/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index 41fd40a..9c7ee4a 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,7 +3,11 @@ let in # Set default values for use without flakes { pkgs ? import { config = {}; overlays = []; } -, pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable { config = {}; overlays = []; } +, pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable { + inherit (pkgs) system; + config = {}; + overlays = []; + } }: let self = { clightning-rest = pkgs.callPackage ./clightning-rest { };