From ec42da1b1bdf9d6fd7b05b66b4bc217c1b804147 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Sep 2023 17:03:55 -0400 Subject: ci: move back to garnix --- pkgs/all-packages.nix | 10 ++++++---- pkgs/default.nix | 19 ++++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) (limited to 'pkgs') 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;}; }; -- cgit v1.2.3