-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
100 lines (96 loc) · 2.99 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, utils, nixpkgs, ... }:
utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
(self: super: {
gnuradio3_8 = super.gnuradio3_8.override {
unwrapped = super.gnuradio3_8.unwrapped.override {
features = {
basic = true;
volk = true;
doxygen = false;
sphinx = false;
python-support = false;
testing-support = false;
gnuradio-runtime = true;
gr-ctrlport = false;
gnuradio-companion = false;
gr-blocks = true;
gr-fec = false;
gr-fft = true;
gr-dtv = false;
gr-trellis = false;
gr-audio = false;
gr-zeromq = false;
gr-uhd = false;
gr-modtool = false;
gr-video-sdl = false;
gr-vocoder = false;
examples = false;
gr-utils = false;
gr-qtgui = false;
gr-blocktool = false;
gr-wavelet = false;
};
};
};
})
];
};
gr-clenabled = pkgs.callPackage ./pkgs/gr-clenabled.nix { };
tetra-receiver = pkgs.callPackage ./pkgs/tetra-receiver.nix { };
in
rec {
checks = packages;
packages = {
inherit gr-clenabled tetra-receiver;
default = tetra-receiver;
};
}
) // {
overlays.default = final: prev: {
inherit (self.packages."x86_64-linux")
tetra-receiver;
};
nixosModules = {
tetra-receiver = {
imports = [
./nixos-modules/tetra-receiver.nix
];
nixpkgs.overlays = [
self.overlays.default
];
};
default = self.nixosModules.tetra-receiver;
};
hydraJobs =
let
hydraSystems = [ "x86_64-linux" ];
hydraBlacklist = [ ];
in
builtins.foldl'
(hydraJobs: system:
builtins.foldl'
(hydraJobs: pkgName:
if builtins.elem pkgName hydraBlacklist
then hydraJobs
else
nixpkgs.lib.recursiveUpdate hydraJobs {
${pkgName}.${system} = self.packages.${system}.${pkgName};
}
)
hydraJobs
(builtins.attrNames self.packages.${system})
)
{ }
hydraSystems;
};
}