35 lines
928 B
Nix
Raw Permalink Normal View History

2024-04-11 00:59:50 -04:00
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
pname = "0xpropo";
2024-05-07 12:19:47 +00:00
version = "1.100";
2024-04-11 00:59:50 -04:00
src =
let
underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] version;
in
2024-04-11 00:59:50 -04:00
fetchzip {
url = "https://github.com/0xType/0xPropo/releases/download/${version}/0xPropo_${underscoreVersion}.zip";
2024-05-07 12:19:47 +00:00
hash = "sha256-ZlZNvn9xiOxS+dfGI1rGbh6XlXo3/puAm2vhKh63sK4=";
2024-04-11 00:59:50 -04:00
};
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype/ *.otf
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
runHook postInstall
'';
2025-06-07 00:48:50 +02:00
meta = {
2024-04-11 00:59:50 -04:00
description = "Proportional version of the 0xProto font";
homepage = "https://github.com/0xType/0xPropo";
changelog = "https://github.com/0xType/0xPropo/releases/tag/${version}";
2025-06-07 00:48:50 +02:00
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ vinnymeller ];
platforms = lib.platforms.all;
2024-04-11 00:59:50 -04:00
};
}