diff options
author | h7x4 <h7x4@nani.wtf> | 2024-01-16 19:23:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 19:23:24 +0100 |
commit | c884430ab9188dc36b6eb263740eba1466ec9985 (patch) | |
tree | 1f1fb49af72c9cb44eb9b325241ad3f37256047a /pkgs/data | |
parent | 2a87ae04c119722a335576889010b360c7599eed (diff) | |
parent | effe62a77a83624c429658d757a607fc15e9a195 (diff) |
Merge pull request #263351 from EdSwordsmith/oxproto
_0xproto: init at 1.300
Diffstat (limited to 'pkgs/data')
-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 0000000000000..25a1fa585bc23 --- /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; + }; +} |