nixos-module/overlay.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2024-03-07 19:27:15 +00:00
{ lix }:
final: prev:
let
boehmgc-patched = ((final.boehmgc.override {
enableLargeConfig = true;
}).overrideAttrs (o: {
patches = (o.patches or [ ]) ++ [
# for clown reasons this version is newer than the one in lix, we should
# fix this and update our nixpkgs pin
(prev.path + "/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch")
# https://github.com/ivmai/bdwgc/pull/586
(lix + "/boehmgc-traceable_allocator-public.diff")
];
})
);
in
{
2024-03-07 19:38:40 +00:00
nixVersions = prev.nixVersions // rec {
2024-03-07 19:27:15 +00:00
# FIXME: do something less scuffed
nix_2_18 = (prev.nixVersions.nix_2_18.override { boehmgc = boehmgc-patched; }).overrideAttrs (old: {
src = lix;
2024-03-08 07:49:26 +00:00
version = "2.90.0-lix";
2024-03-07 19:49:12 +00:00
VERSION_SUFFIX = "-lix";
2024-03-07 19:27:15 +00:00
patches = [ ];
});
2024-03-07 19:38:40 +00:00
stable = nix_2_18;
2024-03-07 20:11:49 +00:00
nix_2_18_upstream = prev.nixVersions.nix_2_18;
};
# force these onto upstream so we are not regularly rebuilding electron
prefetch-yarn-deps = prev.prefetch-yarn-deps.override {
nix = final.nixVersions.nix_2_18_upstream;
};
prefetch-npm-deps = prev.prefetch-npm-deps.override {
nix = final.nixVersions.nix_2_18_upstream;
};
nix-prefetch-git = prev.nix-prefetch-git.override {
nix = final.nixVersions.nix_2_18_upstream;
2024-03-07 19:27:15 +00:00
};
2024-03-07 19:45:59 +00:00
nix-doc = prev.nix-doc.overrideAttrs (old: {
# for the purposes of nix C++ API for nix-doc, lix is Nix 2.20
NIX_CFLAGS_COMPILE = [ "-DNIX_2_20_0" ];
});
2024-03-07 19:27:15 +00:00
}