aboutsummaryrefslogtreecommitdiff
path: root/nix/distribution.nix
blob: 0b223f175e47e7bf6b197dce8b233fa2b5f35343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  inputs,
  self,
  version,
  ...
}: {
  perSystem = {pkgs, ...}: {
    packages = {
      inherit (pkgs) prismlauncher prismlauncher-qt5;
      default = pkgs.prismlauncher;
    };
  };

  flake = {
    overlays.default = _: prev: let
      # Helper function to build prism against different versions of Qt.
      mkPrism = qt:
        qt.callPackage ./package.nix {
          inherit (inputs) libnbtplusplus;
          inherit self version;
        };
    in {
      prismlauncher = mkPrism prev.qt6Packages;
      prismlauncher-qt5 = mkPrism prev.libsForQt5;
    };
  };
}