From 6d504d064d48e04790a71621a5e27e3a85fe49ac Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Tue, 2 Jun 2026 09:08:28 -0500 Subject: [PATCH] _0xpropo: switch to finalAttrs pattern --- pkgs/by-name/_0/_0xpropo/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/_0/_0xpropo/package.nix b/pkgs/by-name/_0/_0xpropo/package.nix index 66840e21f966..ba4e24f51aa6 100644 --- a/pkgs/by-name/_0/_0xpropo/package.nix +++ b/pkgs/by-name/_0/_0xpropo/package.nix @@ -3,16 +3,16 @@ stdenvNoCC, fetchzip, }: -stdenvNoCC.mkDerivation rec { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "0xpropo"; version = "1.100"; src = let - underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] version; + underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version; in fetchzip { - url = "https://github.com/0xType/0xPropo/releases/download/${version}/0xPropo_${underscoreVersion}.zip"; + url = "https://github.com/0xType/0xPropo/releases/download/${finalAttrs.version}/0xPropo_${underscoreVersion}.zip"; hash = "sha256-ZlZNvn9xiOxS+dfGI1rGbh6XlXo3/puAm2vhKh63sK4="; }; @@ -26,9 +26,9 @@ stdenvNoCC.mkDerivation rec { meta = { description = "Proportional version of the 0xProto font"; homepage = "https://github.com/0xType/0xPropo"; - changelog = "https://github.com/0xType/0xPropo/releases/tag/${version}"; + changelog = "https://github.com/0xType/0xPropo/releases/tag/${finalAttrs.version}"; license = lib.licenses.ofl; maintainers = with lib.maintainers; [ vinnymeller ]; platforms = lib.platforms.all; }; -} +})