2022-04-24 12:43:00 +00:00
|
|
|
{ callPackage
|
|
|
|
, libsForQt5
|
|
|
|
}:
|
2017-09-22 19:18:37 +00:00
|
|
|
|
|
|
|
let
|
2022-10-08 13:17:04 +00:00
|
|
|
stableVersion = "2.2.34";
|
2019-11-15 21:17:47 +00:00
|
|
|
previewVersion = stableVersion;
|
2017-09-22 19:18:37 +00: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 12:45:35 +00:00
|
|
|
extraArgs = rec {
|
2020-01-17 22:25:35 +00:00
|
|
|
mkOverride = attrname: version: sha256:
|
|
|
|
self: super: {
|
|
|
|
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2020-03-26 12:45:35 +00:00
|
|
|
commonOverrides = [
|
2022-09-27 00:30:48 +00:00
|
|
|
(self: super: {
|
|
|
|
jsonschema = super.jsonschema_3;
|
|
|
|
})
|
2020-03-26 12:45:35 +00:00
|
|
|
];
|
2020-01-17 22:25:35 +00:00
|
|
|
};
|
2020-06-26 13:18:34 +00:00
|
|
|
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
2020-01-17 22:25:35 +00:00
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
2022-10-08 13:17:04 +00:00
|
|
|
guiSrcHash = "sha256-1YsVMrUYI46lJZbPjf3jnOFDr9Hp54m8DVMz9y4dvVc=";
|
|
|
|
serverSrcHash = "sha256-h4d9s+QvqN/EFV97rPRhQiyC06wkZ9C2af9gx1Z/x/8=";
|
|
|
|
|
2017-09-22 19:18:37 +00:00
|
|
|
in {
|
|
|
|
guiStable = mkGui {
|
|
|
|
stable = true;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 19:18:37 +00:00
|
|
|
};
|
|
|
|
guiPreview = mkGui {
|
|
|
|
stable = false;
|
2019-10-04 10:13:14 +00:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 19:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
serverStable = mkServer {
|
|
|
|
stable = true;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 19:18:37 +00:00
|
|
|
};
|
|
|
|
serverPreview = mkServer {
|
|
|
|
stable = false;
|
2019-10-04 10:13:14 +00:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 19:18:37 +00:00
|
|
|
};
|
|
|
|
}
|