Skip to content

Commit

Permalink
_0xproto: init at 1.300
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSwordsmith committed Oct 25, 2023
1 parent 86b0dfb commit effe62a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/data/fonts/0xproto/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit effe62a

Please sign in to comment.