2019-06-16 20:59:06 +01:00
|
|
|
{ callPackage }:
|
2017-09-22 20:18:37 +01:00
|
|
|
|
|
|
|
let
|
2019-06-14 20:53:26 +01:00
|
|
|
stableVersion = "2.1.21";
|
2019-06-16 11:05:23 +01:00
|
|
|
previewVersion = "2.2.0b3";
|
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-06-14 20:53:26 +01:00
|
|
|
guiSrcHash = "1ydmib302r1cpm2z9pzsfp4ygxrbmskwszsip397n92qx3l9a9v3";
|
|
|
|
serverSrcHash = "1ahn1xq1f0wx46i0c8idz96dxfbakk37pqi6amy91594mdlp8yr4";
|
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-06-16 11:05:23 +01:00
|
|
|
sha256Hash = "1bzy95zqinwrrga7qj6gvpzvz34w4ddhvgmpgq3p1lwzixpqg1w7";
|
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-06-16 11:05:23 +01:00
|
|
|
sha256Hash = "1bq4ww6qhhl0qw6yj7cf7yg54yb4y8mxlnwss6hgbyfv5fz9rxjp";
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
}
|