lol

zile: refactor to use finalAttrs

- wrap derivation in `stdenv.mkDerivation (finalAttrs: { ... })`
- replace `${pname}`/`${version}` with `${finalAttrs.version}` in `src` URL
- update `meta.changelog` to interpolate `finalAttrs.version`
- hardcode pname value in `src` URL

This removes reliance on `rec` and ensures attribute references are
scoped through `finalAttrs`, aligning with current Nixpkgs conventions.

+4 -4
+4 -4
pkgs/by-name/zi/zile/package.nix
··· 12 12 vala, 13 13 }: 14 14 15 - stdenv.mkDerivation rec { 15 + stdenv.mkDerivation (finalAttrs: { 16 16 pname = "zile"; 17 17 version = "2.6.4"; 18 18 19 19 src = fetchurl { 20 - url = "mirror://gnu/zile/${pname}-${version}.tar.gz"; 20 + url = "mirror://gnu/zile/zile-${finalAttrs.version}.tar.gz"; 21 21 hash = "sha256-1dRLhctJBkPQcH4aIYbzoymYwvbquqlIFHm2XK7uV8A="; 22 22 }; 23 23 ··· 47 47 48 48 meta = { 49 49 homepage = "https://www.gnu.org/software/zile/"; 50 - changelog = "https://git.savannah.gnu.org/cgit/zile.git/plain/NEWS?h=v${version}"; 50 + changelog = "https://git.savannah.gnu.org/cgit/zile.git/plain/NEWS?h=v${finalAttrs.version}"; 51 51 description = "Implements Lua Editors"; 52 52 longDescription = '' 53 53 GNU Zile is a text editor development kit, so that you can (relatively) ··· 82 82 platforms = lib.platforms.unix; 83 83 mainProgram = "zile"; 84 84 }; 85 - } 85 + })