nix: set up tooling

This commit is contained in:
raf 2025-06-18 13:51:18 +03:00
commit 7a5207f3b4
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 91 additions and 0 deletions

24
nix/package.nix Normal file
View file

@ -0,0 +1,24 @@
{
lib,
buildGoModule,
}: let
fs = lib.fileset;
s = ../.;
in
buildGoModule {
pname = "tct";
version = "0.1.0";
src = fs.toSource {
root = s;
fileset = fs.unions [
(fs.fileFilter (file: builtins.any file.hasExt ["go"]) s)
../go.mod
../go.sum
];
};
vendorHash = "sha256-m5mBubfbXXqXKsygF5j7cHEY+bXhAMcXUts5KBKoLzM=";
ldflags = ["-s" "-w"];
}