reader: using `finalAttrs`

+18 -21
+18 -21
pkgs/by-name/re/reader/package.nix
··· 3 3 fetchFromGitHub, 4 4 buildGoModule, 5 5 }: 6 - let 7 - self = buildGoModule { 8 - pname = "reader"; 9 - version = "0.5.0"; 6 + buildGoModule (finalAttrs: { 7 + pname = "reader"; 8 + version = "0.5.0"; 10 9 11 - src = fetchFromGitHub { 12 - owner = "mrusme"; 13 - repo = "reader"; 14 - tag = "v${self.version}"; 15 - hash = "sha256-qu48ikqm4EmoeL9j67tGkX3EFBd1JdrLWhhmoElCoJY="; 16 - }; 10 + src = fetchFromGitHub { 11 + owner = "mrusme"; 12 + repo = "reader"; 13 + tag = "v${finalAttrs.version}"; 14 + hash = "sha256-qu48ikqm4EmoeL9j67tGkX3EFBd1JdrLWhhmoElCoJY="; 15 + }; 17 16 18 - vendorHash = "sha256-8IjN7hm5Rg9ItkxE9pbnkVr5t+tG95W9vvXyGaWmEIA="; 17 + vendorHash = "sha256-8IjN7hm5Rg9ItkxE9pbnkVr5t+tG95W9vvXyGaWmEIA="; 19 18 20 - meta = { 21 - description = "Lightweight tool offering better readability of web pages on the CLI"; 22 - homepage = "https://github.com/mrusme/reader"; 23 - changelog = "https://github.com/mrusme/reader/releases"; 24 - license = lib.licenses.gpl3Plus; 25 - maintainers = with lib.maintainers; [ theobori ]; 26 - mainProgram = "reader"; 27 - }; 19 + meta = { 20 + description = "Lightweight tool offering better readability of web pages on the CLI"; 21 + homepage = "https://github.com/mrusme/reader"; 22 + changelog = "https://github.com/mrusme/reader/releases"; 23 + license = lib.licenses.gpl3Plus; 24 + maintainers = with lib.maintainers; [ theobori ]; 25 + mainProgram = "reader"; 28 26 }; 29 - in 30 - self 27 + })