2017-09-22 21:18:37 +02:00
|
|
|
{ callPackage, stdenv }:
|
|
|
|
|
|
|
|
let
|
2019-04-16 10:14:37 +02:00
|
|
|
stableVersion = "2.1.16";
|
2019-04-16 10:10:43 +02:00
|
|
|
previewVersion = "2.2.0a5";
|
2017-09-22 21:18:37 +02: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-04-16 10:14:37 +02:00
|
|
|
guiSrcHash = "03d7yjdnks568njkrgyh7g6c3vf6v7wkifshz2bcvry79pp2h4nl";
|
|
|
|
serverSrcHash = "0p331aaqxw16kk5l2074qn9a7ih6fkivm05n8da3fwydzp9hjmcp";
|
2017-09-22 21:18:37 +02:00
|
|
|
in {
|
|
|
|
guiStable = mkGui {
|
|
|
|
stable = true;
|
2018-01-21 02:05:44 +01:00
|
|
|
sha256Hash = guiSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
guiPreview = mkGui {
|
|
|
|
stable = false;
|
2019-04-16 10:10:43 +02:00
|
|
|
sha256Hash = "0p4g5hszys68ijzsi2rb89j1rpg04wlqlzzrl92npvqqf2i0jdf8";
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
serverStable = mkServer {
|
|
|
|
stable = true;
|
2018-01-21 02:05:44 +01:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
serverPreview = mkServer {
|
|
|
|
stable = false;
|
2019-04-16 10:10:43 +02:00
|
|
|
sha256Hash = "1yvdfczi8ah9m7b49l7larfs678hh7c424i1f73kivfds6211bj5";
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
}
|