Skip to content

Commit

Permalink
flake: packages: correctly eval own overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Feb 22, 2024
1 parent d5080b9 commit 4ef6711
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem.system = system;
overlays = with self.overlays; [hyprlang];
});
mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
Expand All @@ -34,9 +35,10 @@
};
};

packages = eachSystem (system:
(self.overlays.default null pkgsFor.${system})
// {default = self.packages.${system}.hyprlang;});
packages = eachSystem (system: {
default = self.packages.${system}.hyprlang;
inherit (pkgsFor.${system}) hyprlang hyprlang-with-tests;
});

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

0 comments on commit 4ef6711

Please sign in to comment.