about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2024-04-18 18:04:48 +0200
committerRobert Helgesson <robert@rycee.net>2024-04-18 19:02:06 +0200
commit8f8dc63108454115dc5352e2a497f75c40ca24af (patch)
tree91b7f2f6a0f886f14d50629223bcb68f40d49cd1
parent05b242b1884a9c7e185048f80977fdd1155c384a (diff)
fira-code: avoid use of rec
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--pkgs/data/fonts/fira-code/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/data/fonts/fira-code/default.nix b/pkgs/data/fonts/fira-code/default.nix
index 0395920b72be2..553a2d5809883 100644
--- a/pkgs/data/fonts/fira-code/default.nix
+++ b/pkgs/data/fonts/fira-code/default.nix
@@ -1,11 +1,11 @@
 { lib, stdenvNoCC, fetchzip, useVariableFont ? true }:
 
-stdenvNoCC.mkDerivation rec {
+stdenvNoCC.mkDerivation (finalAttrs: {
   pname = "fira-code";
   version = "6.2";
 
   src = fetchzip {
-    url = "https://github.com/tonsky/FiraCode/releases/download/${version}/Fira_Code_v${version}.zip";
+    url = "https://github.com/tonsky/FiraCode/releases/download/${finalAttrs.version}/Fira_Code_v${finalAttrs.version}.zip";
     stripRoot = false;
     hash = "sha256-UHOwZL9WpCHk6vZaqI/XfkZogKgycs5lWg1p0XdQt0A=";
   };
@@ -31,4 +31,4 @@ stdenvNoCC.mkDerivation rec {
     maintainers = [ maintainers.rycee ];
     platforms = platforms.all;
   };
-}
+})