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.
da07011b02
...
6bdbc7e0ec
1 changed files with 9 additions and 26 deletions
35
flake.nix
35
flake.nix
|
@ -6,38 +6,21 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
|
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux"];
|
||||||
pkgsForEach = forAllSystems (system:
|
pkgsForEach = nixpkgs.legacyPackages;
|
||||||
import nixpkgs {
|
|
||||||
localSystem.system = system;
|
|
||||||
overlays = [self.overlays.default];
|
|
||||||
});
|
|
||||||
in {
|
in {
|
||||||
overlays = {
|
packages = forAllSystems (system: {
|
||||||
superfreq = final: _: {
|
superfreq = pkgsForEach.${system}.callPackage ./nix/package.nix {};
|
||||||
superfreq = final.callPackage ./nix/package.nix {};
|
default = self.packages.${system}.superfreq;
|
||||||
};
|
});
|
||||||
default = self.overlays.superfreq;
|
|
||||||
};
|
|
||||||
|
|
||||||
packages =
|
devShells = forAllSystems (system: {
|
||||||
nixpkgs.lib.mapAttrs (system: pkgs: {
|
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
|
||||||
inherit (pkgs) superfreq;
|
});
|
||||||
default = self.packages.${system}.superfreq;
|
|
||||||
})
|
|
||||||
pkgsForEach;
|
|
||||||
|
|
||||||
devShells =
|
|
||||||
nixpkgs.lib.mapAttrs (system: pkgs: {
|
|
||||||
default = pkgs.callPackage ./nix/shell.nix {};
|
|
||||||
})
|
|
||||||
pkgsForEach;
|
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
superfreq = import ./nix/module.nix inputs;
|
superfreq = import ./nix/module.nix inputs;
|
||||||
default = self.nixosModules.superfreq;
|
default = self.nixosModules.superfreq;
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue