2017-09-22 20:18:37 +01:00
|
|
|
{ callPackage, stdenv }:
|
|
|
|
|
|
|
|
let
|
2018-09-16 17:10:34 +01:00
|
|
|
stableVersion = "2.1.10";
|
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)) { };
|
2018-09-16 17:10:34 +01:00
|
|
|
guiSrcHash = "0vn33dcd3sfj5gna79vwm35l8aznga91a8r7i6q06dr4c2svml15";
|
|
|
|
serverSrcHash = "062dai1rb04dyrlrjgk0gr5hx0la8n1nalx0il1i7k1inwy52gj5";
|
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
|
|
|
};
|
|
|
|
}
|