batmon/flake.nix

29 lines
707 B
Nix
Raw Permalink Normal View History

2024-01-09 10:49:33 +00:00
{
2024-01-11 19:51:07 +00:00
description = "Batmon - battery monitor";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
2024-01-09 10:49:33 +00:00
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
2024-01-11 20:43:27 +00:00
nixosModules = {
batmon = ./nix/module.nix {inherit self;};
};
2024-01-09 10:49:33 +00:00
packages = forEachSystem (system: {
2024-01-11 19:51:07 +00:00
batmon = pkgsForEach.${system}.callPackage ./nix/package.nix {};
2024-01-11 20:43:27 +00:00
default = self.packages.${system}.batmon;
2024-01-09 10:49:33 +00:00
});
devShells = forEachSystem (system: {
2024-01-11 20:43:27 +00:00
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {
packagePath = ./nix/package.nix;
};
2024-01-09 10:49:33 +00:00
});
};
}