2020-06-26 16:18:34 +03:00
|
|
|
{ callPackage, libsForQt5 }:
|
2017-09-22 22:18:37 +03:00
|
|
|
|
|
|
|
let
|
2020-10-09 15:58:55 +03:00
|
|
|
stableVersion = "2.2.15";
|
2019-11-16 00:17:47 +03:00
|
|
|
previewVersion = stableVersion;
|
2017-09-22 22:18:37 +03: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 15:45:35 +03:00
|
|
|
extraArgs = rec {
|
2020-01-18 01:25:35 +03:00
|
|
|
mkOverride = attrname: version: sha256:
|
|
|
|
self: super: {
|
|
|
|
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2020-03-26 15:45:35 +03:00
|
|
|
commonOverrides = [
|
2020-08-08 15:27:20 +03:00
|
|
|
(mkOverride "psutil" "5.6.7"
|
|
|
|
"1an5llivfkwpbcfaapbx78p8sfnvzyfypf60wfxihib1mjr8xbgz")
|
2020-07-12 20:16:40 +03:00
|
|
|
(mkOverride "jsonschema" "3.2.0"
|
|
|
|
"0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68")
|
2020-03-26 15:45:35 +03:00
|
|
|
];
|
2020-01-18 01:25:35 +03:00
|
|
|
};
|
2020-06-26 16:18:34 +03:00
|
|
|
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
2020-01-18 01:25:35 +03:00
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
2020-10-09 15:58:55 +03:00
|
|
|
guiSrcHash = "149yphmxc47bhc2f942lp4bx354qj3cyrpn10s1xabkn2hwrsm0d";
|
|
|
|
serverSrcHash = "03cfg48xzgz362ra5x853k8r244dgbrmszcprs2lg70i3m722345";
|
2017-09-22 22:18:37 +03:00
|
|
|
in {
|
|
|
|
guiStable = mkGui {
|
|
|
|
stable = true;
|
2018-01-21 04:05:44 +03:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 22:18:37 +03:00
|
|
|
};
|
|
|
|
guiPreview = mkGui {
|
|
|
|
stable = false;
|
2019-10-04 13:13:14 +03:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 22:18:37 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
serverStable = mkServer {
|
|
|
|
stable = true;
|
2018-01-21 04:05:44 +03:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 22:18:37 +03:00
|
|
|
};
|
|
|
|
serverPreview = mkServer {
|
|
|
|
stable = false;
|
2019-10-04 13:13:14 +03:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 22:18:37 +03:00
|
|
|
};
|
|
|
|
}
|