-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlays.nix
35 lines (30 loc) · 1.08 KB
/
overlays.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
final: prev:
let
inherit (final.lib) trace filter;
traceDependencyRemoval =
name: package: e:
if e == package then trace "${name} is removing ${package.name}" false else true;
in
{
# Use `nom` in nixos-rebuild
nixos-rebuild = prev.nixos-rebuild.overrideAttrs (prevAttrs: {
src = final.applyPatches {
name = "replace-nix-with-nom";
src = prevAttrs.src;
unpackPhase = "install $src ./nixos-rebuild.sh";
installPhase = "cp ./nixos-rebuild.sh $out";
patches = [
(final.replaceVars patches/nixos-rebuild/nom-for-nix.patch {
nixBuild = "${final.nix-output-monitor}/bin/nom-build";
nixCommand = "${final.nix-output-monitor}/bin/nom";
})
];
};
});
# Include the `--print-build-logs` flag when calling `nix build`.
nixpkgs-review = prev.nixpkgs-review.overrideAttrs (prevAttrs: {
patches = (prevAttrs.patches or [ ]) ++ [ patches/nixpkgs-review/print-build-logs.patch ];
});
# On zebul, we use a driver that can do CUDA 12.6, but this is the latest in nixpkgs.
cudaPackages = final.cudaPackages_12_4;
}