blob: 916cb871e4ae0616a9cd7ed40eb9eabb09cb4744 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
systemsAttributes,
nixpkgs,
nixpkgs-darwin,
self,
inputs,
}:
{
nixpkgsAllowUnfree ? false,
nixpkgsCudaSupport ? false,
nixpkgsAllowUnfreePredicate ? [ ],
nixpkgsExtraConfig ? { },
nixpkgsIsDarwin ? false,
}:
(systemsAttributes (
system:
import (if nixpkgsIsDarwin then nixpkgs-darwin else nixpkgs) {
inherit system;
overlays = (import "${self}/lib/overlays.nix" { inherit self; }) ++ [
(_final: _prev: {
tsutsumi = inputs.tsutsumi.packages.${system};
})
];
config = {
allowUnfree = nixpkgsAllowUnfree;
cudaSupport = nixpkgsCudaSupport;
allowUnfreePredicate = nixpkgsAllowUnfreePredicate;
} // nixpkgsExtraConfig;
}
))
|