From d56f05863d789423ff785cec654155d8495373a9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 28 Mar 2024 20:32:24 -0500 Subject: Add nixpkgs unstable as an overlay There are just too many packages that I need that are in nixpkgs unstable and aren't in the release branches. Using it as an overlay like this means I can just refer to the packages I want from unstable without pulling in all the changes. --- Biz/Bild/Nixpkgs.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'Biz/Bild/Nixpkgs.nix') diff --git a/Biz/Bild/Nixpkgs.nix b/Biz/Bild/Nixpkgs.nix index e6d7d01..dff44a0 100644 --- a/Biz/Bild/Nixpkgs.nix +++ b/Biz/Bild/Nixpkgs.nix @@ -1,10 +1,21 @@ let sources = import ./Sources.nix { sourcesFile = ./Sources.json; }; -in -import sources.nixpkgs { + + config = { + allowBroken = true; + allowUnfree = true; + cudaSupport = true; + }; + system = __currentSystem; + +in import sources.nixpkgs-stable { + inherit system config; overlays = [ (_: _: { inherit sources; }) + (_: _: { unstable = import sources.nixpkgs-unstable { + inherit system config; + };}) (_: pkgs: { # Given a generic `builder`, will generate an attrset for all the packages # pinned by `deps` with `builder` applied to the package. This attrset can @@ -29,9 +40,5 @@ import sources.nixpkgs { (import ./Deps.nix) (_: pkgs: { niv = import pkgs.sources.niv {}; }) ]; - config = { - allowBroken = true; - allowUnfree = true; - cudaSupport = true; - }; } + -- cgit v1.2.3