fira-code: avoid use of rec

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-04-18 18:04:48 +02:00 committed by Robert Helgesson
parent 05b242b188
commit 8f8dc63108

View File

@ -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;
};
}
})