_0xproto: init at 1.300

This commit is contained in:
Eduardo Espadeiro 2023-10-25 15:10:07 +01:00
parent 86b0dfb6d6
commit effe62a77a
No known key found for this signature in database
GPG Key ID: 686B41F974804CC1
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation rec {
pname = "0xproto";
version = "1.300";
src = let
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
in
fetchzip {
url = "https://github.com/0xType/0xProto/releases/download/${version}/0xProto_${underscoreVersion}.zip";
hash = "sha256-RanIMf9P2lFOF3kJS6jMlh/X6jttofbHSqFUJxWSqKk=";
};
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 = "Free and Open-source font for programming";
homepage = "https://github.com/0xType/0xProto";
license = licenses.ofl;
maintainers = [ maintainers.edswordsmith ];
platforms = platforms.all;
};
}

View File

@ -29757,6 +29757,8 @@ with pkgs;
office-code-pro = callPackage ../data/fonts/office-code-pro { };
_0xproto = callPackage ../data/fonts/0xproto { };
oldstandard = callPackage ../data/fonts/oldstandard { };
oldsindhi = callPackage ../data/fonts/oldsindhi { };