Unverified Commit effe62a7 authored by Eduardo Espadeiro's avatar Eduardo Espadeiro
Browse files

_0xproto: init at 1.300

parent 86b0dfb6
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
{ 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 −0
Original line number Diff line number Diff line
@@ -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 { };