Skip to content

Commit

Permalink
Merge pull request #303279 from vinnymeller/font-0xpropo
Browse files Browse the repository at this point in the history
_0xpropo: init at 1.000
  • Loading branch information
Aleksanaa committed Apr 11, 2024
2 parents 6b5da54 + 39447b3 commit c9da933
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/by-name/_0/_0xpropo/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation rec {
pname = "0xpropo";
version = "1.000";

src = let
underscoreVersion = builtins.replaceStrings ["."] ["_"] version;
in
fetchzip {
url = "https://github.com/0xType/0xPropo/releases/download/${version}/0xPropo_${underscoreVersion}.zip";
hash = "sha256-yIhabwHjBipkcmsSRaokBXCbawQkUNOU8v+fbn2iiY4=";
};

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 = "Proportional version of the 0xProto font";
homepage = "https://github.com/0xType/0xPropo";
changelog = "https://github.com/0xType/0xPropo/releases/tag/${version}";
license = licenses.ofl;
maintainers = with maintainers; [vinnymeller];
platforms = platforms.all;
};
}

0 comments on commit c9da933

Please sign in to comment.