go rewrite

This commit is contained in:
raf 2024-01-11 22:51:07 +03:00
commit d4290ff553
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
21 changed files with 437 additions and 552 deletions

View file

@ -1,8 +1,6 @@
{
description = "Batmon - battery monitor service";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
description = "Batmon - battery monitor";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = {
self,
@ -13,11 +11,12 @@
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./default.nix {};
batmon = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.${system}.batmon;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./shell.nix {};
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
};
}