gdu: migrate to finalAttrs

+6 -6
+6 -6
pkgs/by-name/gd/gdu/package.nix
··· 7 7 versionCheckHook, 8 8 }: 9 9 10 - buildGoModule rec { 10 + buildGoModule (finalAttrs: { 11 11 pname = "gdu"; 12 12 version = "5.31.0"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "dundee"; 16 16 repo = "gdu"; 17 - tag = "v${version}"; 17 + tag = "v${finalAttrs.version}"; 18 18 hash = "sha256-MAkD4Mh7aXWc8Y4TkXH7NSDgPQugB7Gjhr4nfOr/X1U="; 19 19 }; 20 20 ··· 28 28 ldflags = [ 29 29 "-s" 30 30 "-w" 31 - "-X=github.com/dundee/gdu/v${lib.versions.major version}/build.Version=${version}" 31 + "-X=github.com/dundee/gdu/v${lib.versions.major finalAttrs.version}/build.Version=${finalAttrs.version}" 32 32 ]; 33 33 34 34 postPatch = '' 35 35 substituteInPlace cmd/gdu/app/app_test.go \ 36 - --replace-fail "development" "${version}" 36 + --replace-fail "development" "${finalAttrs.version}" 37 37 ''; 38 38 39 39 postInstall = '' ··· 58 58 the performance gain is not so huge. 59 59 ''; 60 60 homepage = "https://github.com/dundee/gdu"; 61 - changelog = "https://github.com/dundee/gdu/releases/tag/v${version}"; 61 + changelog = "https://github.com/dundee/gdu/releases/tag/${finalAttrs.src.tag}"; 62 62 license = with lib.licenses; [ mit ]; 63 63 maintainers = with lib.maintainers; [ 64 64 fab ··· 66 66 ]; 67 67 mainProgram = "gdu"; 68 68 }; 69 - } 69 + })