2017-09-22 21:18:37 +02:00
|
|
|
{ callPackage, stdenv }:
|
|
|
|
|
|
|
|
let
|
2019-02-26 22:36:28 +01:00
|
|
|
stableVersion = "2.1.13";
|
2019-02-01 12:36:05 +01:00
|
|
|
previewVersion = "2.2.0a1";
|
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-02-26 22:36:28 +01:00
|
|
|
guiSrcHash = "1hr651s6gqjy5shyy3ysk4fz4hs3p72wiqm4fbpgcs4hyxxd4fi8";
|
|
|
|
serverSrcHash = "1dgy5s3dvg4mpyx1zn1qp6wf3vgkymj34ymx4pn1sak45ixij9kz";
|
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-02-01 12:36:05 +01:00
|
|
|
sha256Hash = "16jjgfbdi7b3349wrqalf40qcaqzw3d4vdjbwcy8dbqblg48hn5w";
|
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-02-01 12:36:05 +01:00
|
|
|
sha256Hash = "0bcsjljy947grfn3y9xyi3dbzdw5wkljq1nr66cqfkidx9f4fzni";
|
2017-09-22 21:18:37 +02:00
|
|
|
};
|
|
|
|
}
|