_0xpropo: init at 1.000

This commit is contained in:
Vinny Meller 2024-04-11 00:59:50 -04:00
parent 9306e3cc87
commit 39447b3f07
No known key found for this signature in database
GPG Key ID: 36CBEC89D5C8540C
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
pname = "0xpropo";
version = "1.000";
src = let
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
in
fetchzip {
url = "https://github.com/0xType/0xPropo/releases/download/${version}/0xPropo_${underscoreVersion}.zip";
hash = "sha256-yIhabwHjBipkcmsSRaokBXCbawQkUNOU8v+fbn2iiY4=";
};
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype/ *.otf
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
runHook postInstall
'';
meta = with lib; {
description = "Proportional version of the 0xProto font";
homepage = "https://github.com/0xType/0xPropo";
changelog = "https://github.com/0xType/0xPropo/releases/tag/${version}";
license = licenses.ofl;
maintainers = with maintainers; [vinnymeller];
platforms = platforms.all;
};
}