1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-08-02 20:07:47 +00:00

Compare commits

..

No commits in common. "da07011b02841c27ce751ea8dd67c4c3d153fb10" and "6bdbc7e0ecd06866b940765942c6abe2fbad5ec7" have entirely different histories.

View file

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