nix: modernize

This commit is contained in:
raf 2025-01-08 11:08:07 +03:00
commit 0e6979f684
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
5 changed files with 48 additions and 39 deletions

View file

@ -1,11 +1,22 @@
{buildGoModule}:
{
lib,
buildGoModule,
}:
buildGoModule {
pname = "Batmon";
version = "0.1.0";
src = ../.;
src = builtins.path {
path = ../.;
name = "batmon-src";
};
vendorHash = null;
ldflags = ["-s" "-w"];
meta = {
license = lib.licenses.gpl3Only;
maintainers = [lib.maintainers.NotAShelf];
mainProgram = "batmon";
};
}