2024-10-13 11:24:31 +02:00
|
|
|
{ self, nixpkgs, ... }: final: prev:
|
2024-08-28 00:23:03 +02:00
|
|
|
let
|
2024-10-13 20:28:12 +02:00
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
inherit (lib) toList;
|
2024-10-13 11:24:31 +02:00
|
|
|
inherit (prev.stdenv) buildPlatform hostPlatform;
|
|
|
|
inherit (self.lib) removePackages;
|
2024-08-28 00:23:03 +02:00
|
|
|
in {
|
2024-10-13 11:24:31 +02:00
|
|
|
bind = prev.bind.overrideAttrs (prevAttrs: {
|
|
|
|
buildInputs = prevAttrs.buildInputs or [ ]
|
|
|
|
|> removePackages [ "jemalloc" ];
|
|
|
|
});
|
|
|
|
|
|
|
|
keyutils = prev.keyutils.overrideAttrs (prevAttrs: {
|
|
|
|
NIX_LDFLAGS = toList prevAttrs.NIX_LDFLAGS or [ ] ++ [ "--undefined-version" ];
|
|
|
|
});
|
|
|
|
|
|
|
|
kexec-tools = prev.kexec-tools.override { stdenv = final.gccStdenv; };
|
|
|
|
|
|
|
|
llvmPackages = prev.llvmPackages // {
|
|
|
|
libcxx = prev.llvmPackages.libcxx.override {
|
|
|
|
devExtraCmakeFlags = [ "-DLIBCXX_HAS_MUSL_LIBC=1" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
netbsd = prev.netbsd.overrideScope (final: prev: {
|
|
|
|
compatIfNeeded = [ final.compat ];
|
|
|
|
|
|
|
|
compat = prev.compat.overrideAttrs (prevAttrs: {
|
|
|
|
makeFlags = prevAttrs.makeFlags ++ [ "OBJCOPY=:" ];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2024-10-10 18:34:14 +02:00
|
|
|
numactl = prev.numactl.overrideAttrs (prevAttrs: {
|
|
|
|
patches = prevAttrs.patches or [ ] ++ [
|
|
|
|
(final.fetchpatch {
|
|
|
|
url = "https://github.com/numactl/numactl/commit/f9deba0c8404529772468d6dd01389f7dbfa5ba9.patch";
|
|
|
|
hash = "sha256-TmWfD99YaSIHA5PSsWHE91GSsdsVgVU+qIow7LOwOGw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2024-10-13 11:24:31 +02:00
|
|
|
python3 = (prev.python3.overrideAttrs (prevAttrs: {
|
|
|
|
postFixup = prevAttrs.postFixup + ''
|
|
|
|
cat <<EOF >>"$out/nix-support/setup-hook"
|
|
|
|
setuptoolsDistutilsHook() {
|
|
|
|
export SETUPTOOLS_USE_DISTUTILS="stdlib"
|
|
|
|
}
|
2024-08-28 16:02:10 +02:00
|
|
|
|
2024-10-13 11:24:31 +02:00
|
|
|
addEnvHooks "\$hostOffset" setuptoolsDistutilsHook
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
})).override {
|
|
|
|
enableLTO = false;
|
2024-08-28 16:02:10 +02:00
|
|
|
packageOverrides = final: prev: {
|
2024-10-13 11:24:31 +02:00
|
|
|
html5-parser = prev.html5-parser.overrideAttrs (prevAttrs: {
|
|
|
|
env = prevAttrs.env or { } // {
|
|
|
|
LD = "${final.buildPackages.stdenv.cc.targetPrefix}ld";
|
|
|
|
};
|
2024-09-01 11:12:23 +02:00
|
|
|
});
|
2024-08-28 16:02:10 +02:00
|
|
|
};
|
|
|
|
};
|
2024-09-15 16:14:37 +02:00
|
|
|
|
2024-10-13 11:24:31 +02:00
|
|
|
python3Packages = final.python3.pkgs;
|
|
|
|
|
|
|
|
redis = prev.redis.overrideAttrs {
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
2024-09-15 16:14:37 +02:00
|
|
|
sioyek = prev.sioyek.overrideAttrs (prevAttrs: {
|
|
|
|
env = prevAttrs.env or { } // {
|
|
|
|
NIX_CFLAGS_COMPILE = toList prevAttrs.env.NIX_CFLAGS_COMPILE or [ ]
|
|
|
|
++ [ "-DGL_CLAMP=GL_CLAMP_TO_EDGE" ] |> toString;
|
|
|
|
};
|
|
|
|
});
|
2024-09-16 21:15:43 +02:00
|
|
|
|
2024-10-13 11:24:31 +02:00
|
|
|
time = prev.time.overrideAttrs (prevAttrs: {
|
|
|
|
env = prevAttrs.env or { } // {
|
|
|
|
CFLAGS = toList prevAttrs.env.CFLAGS or [ ] ++ [
|
|
|
|
"-Wno-error=implicit-function-declaration"
|
|
|
|
] |> toString;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2024-09-16 21:15:43 +02:00
|
|
|
zeromq = prev.zeromq.overrideAttrs (prevAttrs: {
|
|
|
|
postPatch = prevAttrs.postPatch or "" + ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace-fail 'CACHELINE_SIZE EQUAL "undefined"' 'CACHELINE_SIZE STREQUAL "undefined"'
|
|
|
|
'';
|
|
|
|
});
|
2024-10-13 11:24:31 +02:00
|
|
|
|
|
|
|
zlib = prev.zlib.override {
|
|
|
|
splitStaticOutput = false;
|
|
|
|
};
|
2024-10-13 20:28:12 +02:00
|
|
|
}
|