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

Merge pull request #35 from spikespaz-contrib/u/jacob/flake-output-overlays

flake:  add superfreq and default pkgs to overlay
This commit is contained in:
raf 2025-05-31 23:13:51 +03:00 committed by GitHub
commit da07011b02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,16 +7,31 @@
...
} @ inputs: let
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
pkgsForEach = nixpkgs.legacyPackages;
pkgsForEach = forAllSystems (system:
import nixpkgs {
localSystem.system = system;
overlays = [self.overlays.default];
});
in {
packages = forAllSystems (system: {
superfreq = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.superfreq;
});
overlays = {
superfreq = final: _: {
superfreq = final.callPackage ./nix/package.nix {};
};
default = self.overlays.superfreq;
};
devShells = forAllSystems (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
packages =
nixpkgs.lib.mapAttrs (system: pkgs: {
inherit (pkgs) superfreq;
default = self.packages.${system}.superfreq;
})
pkgsForEach;
devShells =
nixpkgs.lib.mapAttrs (system: pkgs: {
default = pkgs.callPackage ./nix/shell.nix {};
})
pkgsForEach;
nixosModules = {
superfreq = import ./nix/module.nix inputs;