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:
commit
da07011b02
1 changed files with 23 additions and 8 deletions
31
flake.nix
31
flake.nix
|
@ -7,16 +7,31 @@
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
|
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 {
|
in {
|
||||||
packages = forAllSystems (system: {
|
overlays = {
|
||||||
superfreq = pkgsForEach.${system}.callPackage ./nix/package.nix {};
|
superfreq = final: _: {
|
||||||
default = self.packages.${system}.superfreq;
|
superfreq = final.callPackage ./nix/package.nix {};
|
||||||
});
|
};
|
||||||
|
default = self.overlays.superfreq;
|
||||||
|
};
|
||||||
|
|
||||||
devShells = forAllSystems (system: {
|
packages =
|
||||||
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
|
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 = {
|
nixosModules = {
|
||||||
superfreq = import ./nix/module.nix inputs;
|
superfreq = import ./nix/module.nix inputs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue