nixpkgs/pkgs/data/fonts/0xproto/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
828 B
Nix
Raw Normal View History

2023-10-25 16:10:07 +02:00
{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation rec {
pname = "0xproto";
2024-05-01 14:29:42 +02:00
version = "2.000";
2023-10-25 16:10:07 +02:00
src = let
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
in
fetchzip {
url = "https://github.com/0xType/0xProto/releases/download/${version}/0xProto_${underscoreVersion}.zip";
2024-05-01 14:29:42 +02:00
hash = "sha256-ekoCvN3A0mrYUwIG61508bRAvLdOa+MQ4IXPWE5zKHw=";
2023-10-25 16:10:07 +02:00
};
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;
};
}