depot/packages/patched-derivations.nix

72 lines
2.1 KiB
Nix
Raw Normal View History

2022-06-18 22:00:59 +03:00
let
tools = import ./lib/tools.nix;
pins = import ./sources;
2021-06-05 23:59:06 +03:00
in with tools;
super: rec {
2022-12-17 15:28:15 +02:00
dvc = patch (super.dvc.overrideAttrs (old: let
filteredBaseDeps = super.lib.subtractLists [
super.python3Packages.dvc-data
] old.propagatedBuildInputs;
baseDeps = filteredBaseDeps ++ [
dvc-data
];
in {
propagatedBuildInputs = with super.python3Packages; baseDeps ++ [
2022-08-05 19:57:19 +03:00
aiobotocore
boto3
(s3fs.overrideAttrs (_: { postPatch = ''
substituteInPlace requirements.txt \
--replace "fsspec==2022.02.0" "fsspec" \
--replace "aiobotocore~=2.1.0" "aiobotocore"
'';
}))
];
})) "patches/base/dvc";
2022-08-05 15:27:14 +03:00
2022-12-17 15:37:07 +02:00
dvc-data = patch (super.python3Packages.dvc-data.override {
inherit dvc-objects;
}) "patches/base/dvc-data";
dvc-objects = patch super.python3Packages.dvc-objects "patches/base/dvc-objects";
2022-12-17 15:24:21 +02:00
2022-05-27 18:20:36 +03:00
sssd = (super.sssd.override { withSudo = true; }).overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
${super.removeReferencesTo}/bin/remove-references-to -t ${super.stdenv.cc.cc} $out/modules/ldb/memberof.so
'';
disallowedReferences = [ super.stdenv.cc.cc ];
});
2022-05-27 16:56:49 +03:00
jre17_standard = let
jre = super.jre_minimal.override {
jdk = super.jdk17_headless;
modules = [
"java.se"
"jdk.naming.dns"
"jdk.crypto.ec"
"jdk.zipfs"
"jdk.security.auth"
"jdk.unsupported"
"jdk.xml.dom"
"jdk.sctp"
"jdk.management"
"jdk.dynalink"
];
};
in jre // { meta = jre.meta // { inherit (super.jdk17_headless.meta) platforms; }; };
2022-07-31 23:36:07 +03:00
keycloak = super.keycloak.override {
jre = jre17_standard;
};
powerdns-admin = patch super.powerdns-admin "patches/base/powerdns-admin";
prometheus-jitsi-exporter = patch super.prometheus-jitsi-exporter "patches/base/prometheus-jitsi-exporter";
2022-08-28 19:18:37 +03:00
tempo = (super.tempo.override { buildGoModule = super.buildGo118Module; }).overrideAttrs (_: {
2022-06-18 22:00:59 +03:00
version = builtins.substring 1 (-1) pins.tempo.version;
src = super.npins.mkSource pins.tempo;
2022-06-18 22:00:59 +03:00
subPackages = [ "cmd/tempo" ];
});
2021-06-05 23:59:06 +03:00
}