From 0476f4d523536a6a418125f962e10bf318d6d461 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 26 Oct 2023 16:19:34 +0300 Subject: [PATCH] feat(nix): improve packaging --- default.nix | 4 ++-- flake.lock | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 flake.lock diff --git a/default.nix b/default.nix index 6984378..003cb16 100644 --- a/default.nix +++ b/default.nix @@ -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"]; } diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..51e66da --- /dev/null +++ b/flake.lock @@ -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 +}