2024-03-18 21:26:45 +00:00
|
|
|
{ lix, versionSuffix ? "" }:
|
2024-03-07 19:27:15 +00:00
|
|
|
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")
|
2024-05-03 15:53:33 +00:00
|
|
|
] ++ final.lib.optionals (final.lib.versionOlder o.version "8.2.6") [
|
2024-03-07 19:27:15 +00:00
|
|
|
# https://github.com/ivmai/bdwgc/pull/586
|
2024-03-18 20:16:19 +00:00
|
|
|
(builtins.path { path = lix + "/boehmgc-traceable_allocator-public.diff"; name = "boehmgc-traceable_allocator-public.patch"; })
|
2024-03-07 19:27:15 +00:00
|
|
|
];
|
|
|
|
})
|
|
|
|
);
|
2024-04-03 21:55:27 +00:00
|
|
|
|
2024-05-04 00:13:57 +00:00
|
|
|
# This is kind of scary to not override the nix version to pretend to be
|
|
|
|
# 2.18 since nixpkgs can introduce new breakage in its Nix unstable CLI
|
|
|
|
# usage.
|
|
|
|
# https://github.com/nixos/nixpkgs/blob/6afb255d976f85f3359e4929abd6f5149c323a02/nixos/modules/config/nix.nix#L121
|
2024-04-18 20:56:07 +00:00
|
|
|
lixPkg = (final.callPackage (lix + "/package.nix") {
|
|
|
|
build-release-notes = false;
|
|
|
|
versionSuffix = "-lix${versionSuffix}";
|
|
|
|
boehmgc-nix = boehmgc-patched;
|
2024-05-04 00:13:57 +00:00
|
|
|
});
|
2024-04-22 21:59:54 +00:00
|
|
|
|
|
|
|
inherit (prev) lib;
|
2024-03-07 19:27:15 +00:00
|
|
|
in
|
|
|
|
{
|
2024-04-16 03:06:52 +00:00
|
|
|
# used for things that one wouldn't necessarily want to update, but we
|
|
|
|
# nevertheless shove it in the overlay and fixed-point it in case one *does*
|
|
|
|
# want to do that.
|
2024-05-05 00:03:57 +00:00
|
|
|
lix-sources = import ./pins.nix;
|
2024-04-16 03:06:52 +00:00
|
|
|
|
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
|
2024-04-18 20:56:07 +00:00
|
|
|
nix_2_18 = lixPkg;
|
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;
|
|
|
|
};
|
|
|
|
|
2024-04-16 03:06:52 +00:00
|
|
|
nix-eval-jobs = (prev.nix-eval-jobs.override {
|
|
|
|
# lix
|
|
|
|
nix = final.nixVersions.nix_2_18;
|
|
|
|
}).overrideAttrs (old: {
|
|
|
|
# FIXME: should this be patches instead?
|
|
|
|
src = final.lix-sources.nix-eval-jobs;
|
|
|
|
|
|
|
|
mesonBuildType = "debugoptimized";
|
|
|
|
|
|
|
|
ninjaFlags = old.ninjaFlags or [ ] ++ [ "-v" ];
|
|
|
|
});
|
|
|
|
|
2024-03-07 20:11:49 +00:00
|
|
|
# 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;
|
|
|
|
};
|
2024-04-22 21:59:54 +00:00
|
|
|
|
|
|
|
# support both having and missing https://github.com/NixOS/nixpkgs/pull/304913
|
|
|
|
prefetch-npm-deps =
|
|
|
|
if (lib.functionArgs prev.prefetch-npm-deps.override) ? nix
|
|
|
|
then prev.prefetch-npm-deps.override {
|
|
|
|
nix = final.nixVersions.nix_2_18_upstream;
|
|
|
|
}
|
|
|
|
else prev.prefetch-npm-deps;
|
|
|
|
|
2024-03-07 20:11:49 +00:00
|
|
|
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
|
|
|
|
2024-03-09 01:26:56 +00:00
|
|
|
nixos-option = prev.nixos-option.override {
|
|
|
|
nix = final.nixVersions.nix_2_18_upstream;
|
|
|
|
};
|
|
|
|
|
2024-03-16 23:30:31 +00:00
|
|
|
nix-doc = prev.callPackage ./nix-doc/package.nix { withPlugin = false; };
|
2024-03-27 04:54:26 +00:00
|
|
|
|
|
|
|
nix-init = prev.nix-init.override {
|
|
|
|
nix = final.nixVersions.nix_2_18_upstream;
|
|
|
|
};
|
2024-03-29 01:27:19 +00:00
|
|
|
|
|
|
|
nurl = prev.nurl.override {
|
|
|
|
nix = final.nixVersions.nix_2_18_upstream;
|
|
|
|
};
|
2024-03-07 19:27:15 +00:00
|
|
|
}
|