feat(nix): improve packaging

This commit is contained in:
raf 2023-10-26 16:19:34 +03:00
parent c19a9126b6
commit 0476f4d523
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 28 additions and 2 deletions

View file

@ -1,11 +1,11 @@
{buildGoModule}:
buildGoModule {
pname = "sample-go";
pname = "go-grep-cache";
version = "0.0.1";
src = ./.;
vendorHash = null;
vendorHash = "sha256-gJ0+2ZSng9/6hQ6hUqcNnwwaWSBWoXP9DgaNtq/lWXQ=";
ldflags = ["-s" "-w"];
}

26
flake.lock Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1698326157,
"narHash": "sha256-FRtEwiGZ9MXz5N58yELqaL+MrvBpDFuKsgIkH56p51s=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "064419789ff197042d9ff894892b87d63594c6d7",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}