idiosyn/overlay.nix

28 lines
788 B
Nix
Raw Normal View History

2024-07-21 16:55:31 +02:00
final: prev:
let
inherit (final) lib callPackage;
alpine-patches = callPackage ./pkgs/alpine-patches.nix { };
gentoo-patches = callPackage ./pkgs/gentoo-patches.nix { };
in {
keyutils = prev.keyutils.overrideAttrs (base: {
buildFlags = base.buildFlags or [ ]
++ lib.optional final.keyutils.stdenv.cc.bintools.isLLVM
"LDFLAGS=-Wl,--undefined-version";
});
cpp-utilities = prev.cpp-utilities.overrideAttrs (base: {
buildInputs = [ final.boost ];
});
jemalloc = prev.jemalloc.override {
stdenv = final.gccStdenv;
};
time = prev.time.overrideAttrs (base: {
patches = base.patches or [ ]
++ lib.optional final.time.stdenv.cc.isClang
"${gentoo-patches}/sys-process/time/files/time-1.9-implicit-func-decl-clang.patch";
});
}