summaryrefslogtreecommitdiff
path: root/pkgs/default.nix
blob: 7ff9579472ffdf41bc48ddd1e08c161ecf19691d (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
28
29
30
31
32
final: prev:
with prev; let
  # directories are mapped to packages here for convenience sake
  imported = lib.pipe ./. [
    builtins.readDir

    (
      lib.filterAttrs (
        name: type: !(lib.hasPrefix "_" name) && type == "directory"
      )
    )

    (
      lib.mapAttrs (
        file: _: callPackage ./${file} {}
      )
    )
  ];
in
  imported
  // {
    klassy = libsForQt5.callPackage ./klassy {};

    modrinth-app-unwrapped = callPackage ./modrinth-app {
      inherit (final.nodePackages or prev.nodePackages) pnpm;
      inherit ((final.darwin or prev.darwin).apple_sdk.frameworks) CoreServices Security WebKit;
    };

    modrinth-app = callPackage ./modrinth-app/wrapper.nix {
      inherit (final) modrinth-app-unwrapped;
    };
  }