2019-06-16 20:59:06 +01:00
|
|
|
{ callPackage }:
|
2017-09-22 20:18:37 +01:00
|
|
|
|
|
|
|
let
|
2020-01-10 16:32:45 +00:00
|
|
|
stableVersion = "2.2.5";
|
2019-11-15 21:17:47 +00:00
|
|
|
previewVersion = stableVersion;
|
2017-09-22 20:18:37 +01: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-01-17 22:25:35 +00:00
|
|
|
extraArgs = {
|
|
|
|
mkOverride = attrname: version: sha256:
|
|
|
|
self: super: {
|
|
|
|
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
mkGui = args: callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
2020-01-10 16:32:45 +00:00
|
|
|
guiSrcHash = "1yxwbz93x9hn5y6dir8v7bdfsmfgppvjg4z88l8gx82hhf2476fx";
|
|
|
|
serverSrcHash = "1d3m8qrz82g8ii6q6j015wqwp6j0415fbqbjvw43zhdx5mnn962d";
|
2017-09-22 20:18:37 +01:00
|
|
|
in {
|
|
|
|
guiStable = mkGui {
|
|
|
|
stable = true;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
guiPreview = mkGui {
|
|
|
|
stable = false;
|
2019-10-04 11:13:14 +01:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
serverStable = mkServer {
|
|
|
|
stable = true;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
serverPreview = mkServer {
|
|
|
|
stable = false;
|
2019-10-04 11:13:14 +01:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
}
|