2017-09-22 20:18:37 +01:00
|
|
|
{ callPackage, stdenv }:
|
|
|
|
|
|
|
|
let
|
2019-01-23 13:27:42 +00:00
|
|
|
stableVersion = "2.1.12";
|
2018-01-21 01:05:44 +00:00
|
|
|
# Currently there is no preview version.
|
|
|
|
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; };
|
|
|
|
mkGui = args: callPackage (import ./gui.nix (addVersion args)) { };
|
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args)) { };
|
2019-01-23 13:27:42 +00:00
|
|
|
guiSrcHash = "19kk1nc8h6ljczhizkgszw6xma31p0fmh6vkygpmrfwb8975d1s6";
|
|
|
|
serverSrcHash = "1rs3l33jf33y02xri0b7chy02cjzd8v7l20ccjw2in8mw08mpc99";
|
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;
|
2018-01-21 01:05:44 +00: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;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 20:18:37 +01:00
|
|
|
};
|
|
|
|
}
|