Skip to content

Commit

Permalink
pkgs-unstable: inherit system from stable pkgs
Browse files Browse the repository at this point in the history
Previously, `builtins.defaultSystem` was implicitly used.
This fixes NixOS system builds for systems other than `defaultSystem`.
  • Loading branch information
erikarvstedt committed May 11, 2022
1 parent 24c3d68 commit 472bcf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ let
in
# Set default values for use without flakes
{ pkgs ? import <nixpkgs> { 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 { };
Expand Down

0 comments on commit 472bcf1

Please sign in to comment.