2019-06-16 20:59:06 +01:00
|
|
|
{ callPackage }:
|
2017-09-22 20:18:37 +01:00
|
|
|
|
|
|
|
let
|
2019-11-05 11:31:16 +00:00
|
|
|
stableVersion = "2.2.2";
|
|
|
|
previewVersion = "2.2.2";
|
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; };
|
|
|
|
mkGui = args: callPackage (import ./gui.nix (addVersion args)) { };
|
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args)) { };
|
2019-11-05 11:31:16 +00:00
|
|
|
guiSrcHash = "0i335fjbadixp39l75w0fl5iwz2cb8rcdj2xvx1my3vzhg8lijfl";
|
|
|
|
serverSrcHash = "1g6km8jc53y8ph14ifjxscbimdxma6bw5ir9gqzvkjn39k9fy1w6";
|
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
|
|
|
};
|
|
|
|
}
|