parent
131299587c
commit
9aca532b78
10 changed files with 66 additions and 81 deletions
lib/flake
|
@ -4,11 +4,17 @@ inputs: rec {
|
|||
system,
|
||||
nixpkgs,
|
||||
cfg ? {},
|
||||
nix ? null,
|
||||
cudaSupport ? false,
|
||||
}:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [inputs.self.overlays.build-failures] ++ (cfg.overlays or []);
|
||||
overlays =
|
||||
[
|
||||
(inputs.self.overlays.nix-version {inherit nix;})
|
||||
inputs.self.overlays.build-failures
|
||||
]
|
||||
++ (cfg.overlays or []);
|
||||
config =
|
||||
{
|
||||
inherit cudaSupport;
|
||||
|
@ -24,6 +30,7 @@ inputs: rec {
|
|||
}: ({config, ...}: let
|
||||
pkgs = mkPkgs {
|
||||
cfg = config.nixpkgs;
|
||||
nix = config.nix.package;
|
||||
inherit system cudaSupport;
|
||||
inherit (inputs) nixpkgs;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue