diff options
| author | seth <[email protected]> | 2023-09-06 17:03:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-07 13:13:55 -0400 |
| commit | ec42da1b1bdf9d6fd7b05b66b4bc217c1b804147 (patch) | |
| tree | c2dd856e3c78f41ad097108527779cd3fd9f1090 /pkgs | |
| parent | 43a54b71cd98f5e59a6a7d703b1fb00271ac6639 (diff) | |
ci: move back to garnix
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/all-packages.nix | 10 | ||||
| -rw-r--r-- | pkgs/default.nix | 19 |
2 files changed, 16 insertions, 13 deletions
diff --git a/pkgs/all-packages.nix b/pkgs/all-packages.nix index 1709f66..38f95f0 100644 --- a/pkgs/all-packages.nix +++ b/pkgs/all-packages.nix @@ -17,12 +17,14 @@ in { nixgc = callPackage ./nixgc.nix {}; - modrinth-app-unwrapped = final.callPackage ./modrinth-app { - inherit (prev.nodePackages) pnpm; - inherit (prev.darwin.apple_sdk.frameworks) CoreServices Security WebKit; + modrinth-app-unwrapped = callPackage ./modrinth-app { + inherit (final.nodePackages) pnpm; + inherit (final.darwin.apple_sdk.frameworks) CoreServices Security WebKit; }; - modrinth-app = final.callPackage ./modrinth-app/wrapper.nix {}; + modrinth-app = callPackage ./modrinth-app/wrapper.nix { + inherit (final) modrinth-app-unwrapped; + }; treefetch = callPackage ./treefetch.nix {}; diff --git a/pkgs/default.nix b/pkgs/default.nix index 399a8fd..e66c1d3 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,4 +1,4 @@ -_: { +{self, ...}: { perSystem = { lib, pkgs, @@ -7,15 +7,16 @@ _: { }: { packages = let inherit (builtins) elem; - inherit (lib) filterAttrs makeScope; - inherit (pkgs) newScope; + inherit (lib) filterAttrs fix; - p = let - packages = makeScope newScope (final: import ./all-packages.nix final pkgs); - in - filterAttrs (_: v: - elem system (v.meta.platforms or []) && !(v.meta.broken or false)) - packages; + unfiltered = fix ( + final: + self.overlays.default (final // {inherit (pkgs) nodePackages darwin;}) pkgs + ); + + p = filterAttrs (_: v: + elem system (v.meta.platforms or []) && !(v.meta.broken or false)) + unfiltered; in p // {default = p.treefetch;}; }; |
