2022-06-18 22:00:59 +03:00
|
|
|
let
|
|
|
|
tools = import ./lib/tools.nix;
|
|
|
|
pins = import ./sources;
|
2023-06-06 01:59:36 +03:00
|
|
|
|
|
|
|
dvcMd5ToSha256 = old: {
|
|
|
|
postPatch = (old.postPatch or "") + ''
|
|
|
|
grep -Rwl md5 | xargs sed -i s/md5/sha256/g
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
dvcYamlToJson = old: {
|
|
|
|
postPatch = (old.postPatch or "") + ''
|
|
|
|
grep -Rwl yaml | xargs sed -i s/yaml/json/g
|
|
|
|
grep -Rwl ruamel.json | xargs sed -i s/ruamel.json/ruamel.yaml/g
|
|
|
|
'';
|
|
|
|
};
|
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
|
2023-06-06 01:59:36 +03:00
|
|
|
super.python3Packages.dvc-http
|
2022-12-17 15:28:15 +02:00
|
|
|
] old.propagatedBuildInputs;
|
|
|
|
|
|
|
|
baseDeps = filteredBaseDeps ++ [
|
|
|
|
dvc-data
|
2023-06-06 01:59:36 +03:00
|
|
|
dvc-http
|
2022-12-17 15:28:15 +02:00
|
|
|
];
|
2023-06-06 01:59:36 +03:00
|
|
|
patched = dvcMd5ToSha256 old;
|
|
|
|
patched' = dvcYamlToJson patched;
|
|
|
|
in patched' // {
|
2022-12-17 15:28:15 +02:00
|
|
|
propagatedBuildInputs = with super.python3Packages; baseDeps ++ [
|
2022-08-05 19:57:19 +03:00
|
|
|
aiobotocore
|
|
|
|
boto3
|
|
|
|
(s3fs.overrideAttrs (_: { postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
2023-06-06 01:59:36 +03:00
|
|
|
--replace "fsspec==2023.3.0" "fsspec" \
|
2022-08-05 19:57:19 +03:00
|
|
|
--replace "aiobotocore~=2.1.0" "aiobotocore"
|
|
|
|
'';
|
|
|
|
}))
|
|
|
|
];
|
|
|
|
})) "patches/base/dvc";
|
2022-08-05 15:27:14 +03:00
|
|
|
|
2023-06-06 01:59:36 +03:00
|
|
|
dvc-data = (super.python3Packages.dvc-data.override {
|
|
|
|
inherit dvc-objects;
|
|
|
|
}).overrideAttrs dvcMd5ToSha256;
|
|
|
|
|
|
|
|
dvc-http = super.python3Packages.dvc-http.override {
|
2022-12-17 15:37:07 +02:00
|
|
|
inherit dvc-objects;
|
2023-06-06 01:59:36 +03:00
|
|
|
};
|
2022-12-17 15:37:07 +02:00
|
|
|
|
2023-06-06 01:59:36 +03:00
|
|
|
dvc-objects = super.python3Packages.dvc-objects.overrideAttrs dvcMd5ToSha256;
|
2022-12-17 15:24:21 +02:00
|
|
|
|
2023-07-23 23:23:17 +03:00
|
|
|
forgejo = patch super.forgejo "patches/base/forgejo";
|
|
|
|
|
2023-06-20 17:38:36 +03:00
|
|
|
jellyfin = patch (super.jellyfin.override {
|
|
|
|
ffmpeg = super.ffmpeg.override {
|
|
|
|
withMfx = true;
|
|
|
|
};
|
|
|
|
}) "patches/base/jellyfin";
|
|
|
|
|
2022-05-27 19:30:02 +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"
|
2022-05-27 19:37:55 +03:00
|
|
|
"jdk.security.auth"
|
2022-05-27 19:52:56 +03:00
|
|
|
"jdk.unsupported"
|
|
|
|
"jdk.xml.dom"
|
|
|
|
"jdk.sctp"
|
2022-05-31 11:15:54 +03:00
|
|
|
"jdk.management"
|
2022-10-02 18:41:46 +03:00
|
|
|
"jdk.dynalink"
|
2022-05-27 19:30:02 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in jre // { meta = jre.meta // { inherit (super.jdk17_headless.meta) platforms; }; };
|
2022-06-07 19:36:37 +03:00
|
|
|
|
2023-06-10 17:34:02 +03:00
|
|
|
kanidm = patch super.kanidm "patches/base/kanidm";
|
|
|
|
|
2022-07-31 23:36:07 +03:00
|
|
|
keycloak = super.keycloak.override {
|
|
|
|
jre = jre17_standard;
|
|
|
|
};
|
|
|
|
|
2023-08-23 22:20:30 +03:00
|
|
|
postgresql = super.postgresql_14;
|
|
|
|
|
2023-06-09 20:56:29 +03:00
|
|
|
powerdns-admin = patch super.powerdns-admin "patches/base/powerdns-admin";
|
|
|
|
|
2022-08-04 14:50:42 +03:00
|
|
|
prometheus-jitsi-exporter = patch super.prometheus-jitsi-exporter "patches/base/prometheus-jitsi-exporter";
|
|
|
|
|
2023-02-25 10:10:37 +02:00
|
|
|
tempo = (super.tempo.override { buildGoModule = super.buildGo119Module; }).overrideAttrs (_: {
|
2022-06-18 22:00:59 +03:00
|
|
|
version = builtins.substring 1 (-1) pins.tempo.version;
|
2022-07-25 12:58:20 +03:00
|
|
|
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
|
|
|
}
|