gh-ost: use finalAttrs

+5 -6
+5 -6
pkgs/by-name/gh/gh-ost/package.nix
··· 3 3 buildGoModule, 4 4 fetchFromGitHub, 5 5 testers, 6 - gh-ost, 7 6 }: 8 7 9 - buildGoModule rec { 8 + buildGoModule (finalAttrs: { 10 9 pname = "gh-ost"; 11 10 version = "1.1.7"; 12 11 13 12 src = fetchFromGitHub { 14 13 owner = "github"; 15 14 repo = "gh-ost"; 16 - rev = "v${version}"; 15 + tag = "v${finalAttrs.version}"; 17 16 hash = "sha256-TTc69dWasqMVwwJNo+M9seMKEWgerZ2ZR7dwDfM1gWI="; 18 17 }; 19 18 ··· 22 21 ldflags = [ 23 22 "-s" 24 23 "-w" 25 - "-X main.AppVersion=${version}" 24 + "-X main.AppVersion=${finalAttrs.version}" 26 25 ]; 27 26 28 27 checkFlags = ··· 37 36 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; 38 37 39 38 passthru.tests.version = testers.testVersion { 40 - package = gh-ost; 39 + package = finalAttrs.finalPackage; 41 40 }; 42 41 43 42 meta = { ··· 47 46 maintainers = with lib.maintainers; [ aaronjheng ]; 48 47 mainProgram = "gh-ost"; 49 48 }; 50 - } 49 + })