idiosyn/package/fira-code.nix

24 lines
550 B
Nix
Raw Normal View History

{ ... }: { stdenv, lib, fetchzip }:
stdenv.mkDerivation (finalAttrs: {
pname = "fira-code";
version = "unstable-2024-08-27";
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=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
2024-08-31 18:15:22 +02:00
install -D -m 0644 -t "$out/share/fonts" \
2024-09-20 20:44:50 +02:00
"variable_ttf/Fira Code/FiraCode-VF.ttf"
2024-08-31 18:15:22 +02:00
runHook postInstall
'';
})