redka: 0.5.3 → 0.6.0

+12 -13
+12 -13
pkgs/by-name/re/redka/package.nix
··· 4 4 fetchFromGitHub, 5 5 }: 6 6 7 - buildGoModule rec { 7 + buildGoModule (finalAttrs: { 8 8 pname = "redka"; 9 - version = "0.5.3"; 9 + version = "0.6.0"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "nalgeon"; 13 13 repo = "redka"; 14 - rev = "v${version}"; 15 - hash = "sha256-CCTPhcarLFs2wyhu7OqifunVSil2QU61JViY3uTjVg8="; 14 + tag = "v${finalAttrs.version}"; 15 + hash = "sha256-8p1riY5tCLhNWbXGmMEolqVVyjeKmc0WSaTI7lLZhJk="; 16 16 }; 17 17 18 - vendorHash = "sha256-aX0X6TWVEouo884LunCt+UzLyvDHgmvuxdV0wh0r7Ro="; 18 + vendorHash = "sha256-vtCUDRBVbG7xocE7yUDktUSzEEc5af75R7rmcabu/sQ="; 19 19 20 20 subPackages = [ 21 21 "cmd/redka" 22 - "cmd/cli" 23 22 ]; 24 23 25 - ldflags = [ "-X main.version=v${version}" ]; 26 - 27 - postInstall = '' 28 - mv $out/bin/{cli,redka-cli} 29 - ''; 24 + ldflags = [ 25 + "-s" 26 + "-w" 27 + "-X main.version=v${finalAttrs.version}" 28 + ]; 30 29 31 30 meta = { 32 31 description = "Redis re-implemented with SQLite"; 33 32 homepage = "https://github.com/nalgeon/redka"; 34 - changelog = "https://github.com/nalgeon/redka/releases/tag/${src.rev}"; 33 + changelog = "https://github.com/nalgeon/redka/releases/tag/${finalAttrs.src.tag}"; 35 34 maintainers = with lib.maintainers; [ sikmir ]; 36 35 license = lib.licenses.bsd3; 37 36 }; 38 - } 37 + })