refactor(nix): use final in overlay

this allows to implictly pass `prismlauncher-unwrapped`
it won't have an effect on our package set as directly inheriting from
the scope we create filters out the extra attributes usually introduced
with a scope

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth 2024-08-20 02:04:05 -04:00
parent 271c38bc56
commit e85b364748
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -5,7 +5,7 @@
{ {
packages = packages =
let let
ourPackages = lib.fix (final: self.overlays.default final pkgs); ourPackages = lib.makeScope pkgs.newScope (final: self.overlays.default final pkgs);
in in
{ {
inherit (ourPackages) prismlauncher-unwrapped prismlauncher; inherit (ourPackages) prismlauncher-unwrapped prismlauncher;
@ -25,9 +25,7 @@
inherit version; inherit version;
}; };
prismlauncher = prev.qt6Packages.callPackage ./pkg/wrapper.nix { prismlauncher = final.callPackage ./pkg/wrapper.nix { };
inherit (final) prismlauncher-unwrapped;
};
}; };
}; };
} }