auto-cpufreq/flake.nix

25 lines
685 B
Nix
Raw Normal View History

2023-09-16 11:36:01 +02:00
{
2023-10-13 16:31:59 +02:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
2023-09-16 11:36:01 +02:00
2023-10-13 16:31:59 +02:00
outputs = {nixpkgs, ...} @ inputs: let
2023-10-13 23:47:16 +02:00
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "i686-linux" "aarch64-linux"];
2023-10-13 16:31:59 +02:00
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forAllSystems (system: {
default = pkgsForEach.${system}.python3Packages.callPackage ./nix/default.nix {};
});
2023-09-16 11:36:01 +02:00
2023-10-13 16:31:59 +02:00
devShells = forAllSystems (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
2023-09-16 11:36:01 +02:00
overlays.default = final: _: {
auto-cpufreq = final.callPackage ./nix/default.nix {};
};
2023-10-13 16:31:59 +02:00
nixosModules.default = import ./nix/module.nix inputs;
};
2023-09-16 11:36:01 +02:00
}