2024-08-27 21:44:24 +02:00
|
|
|
{ ... }: { stdenv, lib, fetchzip }:
|
2024-08-26 13:18:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "fira-code";
|
2024-08-27 21:44:24 +02:00
|
|
|
version = "unstable-2024-08-27";
|
2024-08-26 13:18:45 +02:00
|
|
|
|
2024-08-27 21:44:24 +02:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/illdefined/FiraCode/releases/download/unstable-2024-08-27/Fira_Code_8557c11.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-pcxwlqTntP+/tNOX+MPG+YTiSv1odX4fa3zBfJViQGQ=";
|
2024-08-26 13:18:45 +02:00
|
|
|
};
|
|
|
|
|
2024-08-27 21:44:24 +02:00
|
|
|
dontBuild = true;
|
2024-08-26 13:18:45 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2024-08-31 18:15:22 +02:00
|
|
|
|
|
|
|
install -D -m 0644 -t "$out/share/fonts" \
|
|
|
|
"ttf/Fira Code/"*.ttf \
|
|
|
|
"variable_ttf/Fira Code/"*.ttf
|
|
|
|
|
2024-08-26 13:18:45 +02:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
})
|