2022-04-24 14:43:00 +02:00
|
|
|
{ callPackage
|
|
|
|
, libsForQt5
|
|
|
|
}:
|
2017-09-22 21:18:37 +02:00
|
|
|
|
|
|
|
let
|
2022-04-24 14:43:00 +02:00
|
|
|
stableVersion = "2.2.31";
|
2019-11-15 22:17:47 +01:00
|
|
|
previewVersion = stableVersion;
|
2017-09-22 21:18:37 +02:00
|
|
|
addVersion = args:
|
|
|
|
let version = if args.stable then stableVersion else previewVersion;
|
|
|
|
branch = if args.stable then "stable" else "preview";
|
|
|
|
in args // { inherit version branch; };
|
2020-03-26 13:45:35 +01:00
|
|
|
extraArgs = rec {
|
2020-01-17 23:25:35 +01:00
|
|
|
mkOverride = attrname: version: sha256:
|
|
|
|
self: super: {
|
|
|
|
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2020-03-26 13:45:35 +01:00
|
|
|
commonOverrides = [
|
2022-04-24 14:43:00 +02:00
|
|
|
(mkOverride "jsonschema" "3.2.0" "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68")
|
2020-03-26 13:45:35 +01:00
|
|
|
];
|
2020-01-17 23:25:35 +01:00
|
|
|
};
|
2020-06-26 15:18:34 +02:00
|
|
|
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
2020-01-17 23:25:35 +01:00
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
2022-04-24 14:43:00 +02:00
|
|
|
guiSrcHash = "sha256-o9j/avuapiUKIDO6aO/uWFF/5gu+xdfhL7ZSDSaQ858=";
|
|
|
|
serverSrcHash = "sha256-8r8nWNqbHUDtJ6x+/SxHxaw1isSuWF/5as3YXLB6LFw=";
|
2017-09-22 21:18:37 +02:00
|
|
|
in {
|
|
|
|
guiStable = mkGui {
|
|
|
|
stable = true;
|
2018-01-21 02:05:44 +01:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
guiPreview = mkGui {
|
|
|
|
stable = false;
|
2019-10-04 12:13:14 +02:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
serverStable = mkServer {
|
|
|
|
stable = true;
|
2018-01-21 02:05:44 +01:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
serverPreview = mkServer {
|
|
|
|
stable = false;
|
2019-10-04 12:13:14 +02:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
}
|