diff options
author | Eduardo Espadeiro <eduardo.espadeiro@tecnico.ulisboa.pt> | 2023-10-25 15:10:07 +0100 |
---|---|---|
committer | Eduardo Espadeiro <eduardo.espadeiro@tecnico.ulisboa.pt> | 2023-10-25 18:54:10 +0100 |
commit | effe62a77a83624c429658d757a607fc15e9a195 (patch) | |
tree | fc7753691b3e967586ce47d8d5668f38c60685ea /pkgs/data/fonts | |
parent | 86b0dfb6d6e692114576c34910858830fd532862 (diff) | |
download | nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar.gz nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar.bz2 nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar.lz nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar.xz nixlib-effe62a77a83624c429658d757a607fc15e9a195.tar.zst nixlib-effe62a77a83624c429658d757a607fc15e9a195.zip |
_0xproto: init at 1.300
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/0xproto/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/data/fonts/0xproto/default.nix b/pkgs/data/fonts/0xproto/default.nix new file mode 100644 index 000000000000..25a1fa585bc2 --- /dev/null +++ b/pkgs/data/fonts/0xproto/default.nix @@ -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; + }; +} |