2017-09-22 19:18:37 +00:00
|
|
|
{ callPackage, stdenv }:
|
|
|
|
|
|
|
|
let
|
2018-09-29 18:49:18 +00:00
|
|
|
stableVersion = "2.1.11";
|
2018-01-21 01:05:44 +00:00
|
|
|
# Currently there is no preview version.
|
|
|
|
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; };
|
|
|
|
mkGui = args: callPackage (import ./gui.nix (addVersion args)) { };
|
|
|
|
mkServer = args: callPackage (import ./server.nix (addVersion args)) { };
|
2018-09-29 18:49:18 +00:00
|
|
|
guiSrcHash = "1skcb47r0wvv7l7z487b2165pwvc397b23abfq24kw79806vknzn";
|
|
|
|
serverSrcHash = "09j2nafxvgc6plk7s3qwv5qc0cc2bi41h4fhg8g7c85ixfx5yz8a";
|
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;
|
2018-01-21 01:05:44 +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;
|
2018-01-21 01:05:44 +00:00
|
|
|
sha256Hash = serverSrcHash;
|
2017-09-22 19:18:37 +00:00
|
|
|
};
|
|
|
|
}
|