nix tooling

This commit is contained in:
raf 2024-01-09 13:49:33 +03:00
commit 17bd6eaf55
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
4 changed files with 92 additions and 0 deletions

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
description = "Batmon - battery monitor service";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./default.nix {};
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./shell.nix {};
});
};
}