nix: init package at 0.1.0
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I1fee4c7eaefdf72bf3f1b6f6866e47006a6a6964
This commit is contained in:
parent
605923a94a
commit
e21f186ced
1 changed files with 20 additions and 5 deletions
|
|
@ -1,11 +1,26 @@
|
|||
{buildGoModule}:
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
}:
|
||||
buildGoModule {
|
||||
pname = "sample-go";
|
||||
version = "0.0.1";
|
||||
pname = "ncro";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ../.;
|
||||
src = let
|
||||
fs = lib.fileset;
|
||||
s = ../.;
|
||||
in
|
||||
fs.toSource {
|
||||
root = s;
|
||||
fileset = fs.unions [
|
||||
(s + /cmd)
|
||||
(s + /internal)
|
||||
(s + /go.mod)
|
||||
(s + /go.sum)
|
||||
];
|
||||
};
|
||||
|
||||
vendorHash = "";
|
||||
vendorHash = "sha256-suI8EAgRFG7BDJP2aqLWsej6FTP+OrEsmxRyV5hkKK0=";
|
||||
|
||||
ldflags = ["-s" "-w"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue