batmon/flake.nix

23 lines
572 B
Nix
Raw 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 {
packages = forEachSystem (system: {
2024-01-11 19:51:07 +00:00
batmon = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.${system}.batmon;
2024-01-09 10:49:33 +00:00
});
devShells = forEachSystem (system: {
2024-01-11 19:51:07 +00:00
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
2024-01-09 10:49:33 +00:00
});
};
}