pkgs-unstable: inherit system from stable pkgs

Previously, `builtins.defaultSystem` was implicitly used.
This fixes NixOS system builds for systems other than `defaultSystem`.
This commit is contained in:
Erik Arvstedt 2022-05-11 10:01:12 +02:00
parent 24c3d68eee
commit 472bcf1565
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -3,7 +3,11 @@ let
in in
# Set default values for use without flakes # Set default values for use without flakes
{ pkgs ? import <nixpkgs> { config = {}; overlays = []; } { pkgs ? import <nixpkgs> { config = {}; overlays = []; }
, pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable { config = {}; overlays = []; } , pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable {
inherit (pkgs) system;
config = {};
overlays = [];
}
}: }:
let self = { let self = {
clightning-rest = pkgs.callPackage ./clightning-rest { }; clightning-rest = pkgs.callPackage ./clightning-rest { };