termbg: use finalAttrs

kyehn 3e49627f 95b8a96f

+4 -4
+4 -4
pkgs/by-name/te/termbg/package.nix
··· 5 5 nix-update-script, 6 6 }: 7 7 8 - rustPlatform.buildRustPackage rec { 8 + rustPlatform.buildRustPackage (finalAttrs: { 9 9 pname = "termbg"; 10 10 version = "0.6.2"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "dalance"; 14 14 repo = "termbg"; 15 - tag = "v${version}"; 15 + tag = "v${finalAttrs.version}"; 16 16 hash = "sha256-JVRl0BCuU6duFcFZr3Rs8dgS+ikwCKe5/z3JgjAikiw="; 17 17 }; 18 18 ··· 29 29 meta = { 30 30 description = "Program for terminal background color detection"; 31 31 homepage = "https://github.com/dalance/termbg"; 32 - changelog = "https://github.com/dalance/termbg/blob/${src.rev}/CHANGELOG.md"; 32 + changelog = "https://github.com/dalance/termbg/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 33 33 license = with lib.licenses; [ 34 34 mit 35 35 asl20 ··· 37 37 maintainers = with lib.maintainers; [ pinpox ]; 38 38 mainProgram = "termbg"; 39 39 }; 40 - } 40 + })