This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
forked from numtide/nixpkgs-unfree
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
59 lines (54 loc) · 1.74 KB
/
flake.nix
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
description = "nixpkgs with the unfree bits enabled";
inputs = {
nixpkgs.follows = "nixpkgs-master";
# Which revisions to build, NB the nixpkgs-$branch pattern
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixpkgs-nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-release.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-release-staging.url = "github:NixOS/nixpkgs/staging-24.05";
hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [ "https://cuda-maintainers.cachix.org" ];
extra-trusted-public-keys = [
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
outputs =
inputs@{ self, flake-parts, ... }:
let
systems = [ "x86_64-linux" ];
inherit (inputs) nixpkgs;
inherit (nixpkgs) lib;
in
flake-parts.lib.mkFlake { inherit inputs; } {
inherit systems;
flake =
let
eachSystem = lib.genAttrs systems;
eachBranch = lib.genAttrs [ "master" ];
in
{
herculesCI.onPush.default.outputs = eachSystem (
system:
(eachBranch (
branch:
import (inputs.nixpkgs + "/pkgs/top-level/release-cuda.nix") {
inherit system;
packageSet = import inputs."nixpkgs-${branch}";
}
))
);
};
};
}