1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

flake: packages: inherit from default overlay

This commit is contained in:
Jacob Birkett 2025-05-31 12:43:55 -07:00
parent 08c51b6296
commit 3caaa22f3e

View file

@ -10,6 +10,7 @@
pkgsForEach = forAllSystems (system: pkgsForEach = forAllSystems (system:
import nixpkgs { import nixpkgs {
localSystem.system = system; localSystem.system = system;
overlays = [self.overlays.default];
}); });
in { in {
overlays = { overlays = {
@ -19,10 +20,12 @@
default = self.overlays.superfreq; default = self.overlays.superfreq;
}; };
packages = forAllSystems (system: { packages =
superfreq = pkgsForEach.${system}.callPackage ./nix/package.nix {}; nixpkgs.lib.mapAttrs (system: pkgs: {
inherit (pkgs) superfreq;
default = self.packages.${system}.superfreq; default = self.packages.${system}.superfreq;
}); })
pkgsForEach;
devShells = forAllSystems (system: { devShells = forAllSystems (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {}; default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};