mirror of
https://github.com/NotAShelf/tct.git
synced 2025-10-02 15:03:48 +00:00
nix: set up tooling
This commit is contained in:
parent
c8ff2dad43
commit
7a5207f3b4
5 changed files with 91 additions and 0 deletions
24
nix/package.nix
Normal file
24
nix/package.nix
Normal 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"];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue