2024-07-21 16:55:31 +02:00
|
|
|
{ nixpkgs, ... }: final: prev:
|
|
|
|
let
|
|
|
|
inherit (final) lib callPackage;
|
|
|
|
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
localSystem = final.buildPlatform;
|
|
|
|
crossSystem = final.hostPlatform;
|
|
|
|
config = removeAttrs final.config [
|
|
|
|
"replaceStdenv"
|
|
|
|
"replaceCrossStdenv"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
idiosyn = import ./stdenv.nix pkgs;
|
|
|
|
|
|
|
|
gentoo-patches = final.fetchgit {
|
|
|
|
url = "https://anongit.gentoo.org/git/repo/gentoo.git";
|
|
|
|
rev = "fa77d52a7ff39464c50707ca024725deab08b534";
|
|
|
|
sparseCheckout = [ "*.patch" ];
|
|
|
|
nonConeMode = true;
|
|
|
|
hash = "sha256-ZTrPeo8TjKSDAUyeJyWq1C8O9EXd9uhClHlphPsFXCA=";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
inherit idiosyn;
|
|
|
|
|
2024-07-24 20:22:34 +02:00
|
|
|
llvmPackages = prev.llvmPackages_latest;
|
|
|
|
|
2024-07-24 18:41:03 +02:00
|
|
|
libgcrypt = prev.libgcrypt.overrideAttrs (base: {
|
|
|
|
configureFlags = base.configureFlags or [ ]
|
|
|
|
++ [ "--disable-jent-support" ];
|
|
|
|
});
|
|
|
|
|
2024-07-21 16:55:31 +02:00
|
|
|
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";
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|