2019-06-16 19:59:06 +00:00
|
|
|
{ callPackage }:
|
2017-09-22 19:18:37 +00:00
|
|
|
|
|
|
|
let
|
2020-05-10 12:55:49 +00:00
|
|
|
stableVersion = "2.2.8";
|
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-02-25 21:18:43 +00:00
|
|
|
doCheck = oldAttrs.doCheck && (attrname != "psutil");
|
2020-01-17 22:25:35 +00:00
|
|
|
});
|
|
|
|
};
|
2020-03-26 12:45:35 +00:00
|
|
|
commonOverrides = [
|
|
|
|
(mkOverride "psutil" "5.6.6"
|
|
|
|
"1rs6z8bfy6bqzw88s4i5zllrx3i18hnkv4akvmw7bifngcgjh8dd")
|
|
|
|
];
|
2020-01-17 22:25:35 +00:00
|
|
|
};
|
|
|
|
mkGui = args: callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
|
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
|
2020-05-10 12:55:49 +00:00
|
|
|
guiSrcHash = "1qgzad9hdbvkdalzdnlg5gnlzn2f9qlpd1aj8djmi6w1mmdkf9q7";
|
|
|
|
serverSrcHash = "1kg38dh0xk4yvi7hz0d5dq9k0wany0sfd185l0zxs3nz78zd23an";
|
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
|
|
|
};
|
|
|
|
}
|