Skip to content

Commit

Permalink
flake: inherit packages from overlaid nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Aug 9, 2023
1 parent c5b241d commit 2f6432d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@
import nixpkgs {
localSystem = system;
overlays = [
self.overlays.default
inputs.hyprland-protocols.overlays.default
self.overlays.xdg-desktop-portal-hyprland
self.overlays.hyprland-share-picker
];
});
in {
overlays = import ./nix/overlays.nix {inherit self inputs lib;};

packages = eachSystem (system:
(self.overlays.default pkgsFor.${system} pkgsFor.${system})
// {default = self.packages.${system}.xdg-desktop-portal-hyprland;});
packages = eachSystem (system: {
inherit (pkgsFor.${system}) xdg-desktop-portal-hyprland hyprland-share-picker;
default = self.packages.${system}.xdg-desktop-portal-hyprland;
});

formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
};
Expand Down

0 comments on commit 2f6432d

Please sign in to comment.