mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
34 lines
956 B
Nix
34 lines
956 B
Nix
{ callPackage, stdenv }:
|
|
|
|
let
|
|
stableVersion = "2.1.10";
|
|
# Currently there is no preview version.
|
|
previewVersion = stableVersion;
|
|
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)) { };
|
|
guiSrcHash = "0vn33dcd3sfj5gna79vwm35l8aznga91a8r7i6q06dr4c2svml15";
|
|
serverSrcHash = "062dai1rb04dyrlrjgk0gr5hx0la8n1nalx0il1i7k1inwy52gj5";
|
|
in {
|
|
guiStable = mkGui {
|
|
stable = true;
|
|
sha256Hash = guiSrcHash;
|
|
};
|
|
guiPreview = mkGui {
|
|
stable = false;
|
|
sha256Hash = guiSrcHash;
|
|
};
|
|
|
|
serverStable = mkServer {
|
|
stable = true;
|
|
sha256Hash = serverSrcHash;
|
|
};
|
|
serverPreview = mkServer {
|
|
stable = false;
|
|
sha256Hash = serverSrcHash;
|
|
};
|
|
}
|