nixpkgs/pkgs/data/fonts/tt2020/default.nix

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

31 lines
769 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchFromGitHub }:
2020-02-02 09:59:48 +00:00
stdenvNoCC.mkDerivation rec {
2020-02-02 09:59:48 +00:00
pname = "TT2020";
version = "0.2.1";
src = fetchFromGitHub {
owner = "ctrlcctrlv";
repo = pname;
rev = "v${version}";
hash = "sha256-eAJzaookHcQ/7QNq/HUKA/O2liyKynJNdo6QuZ1Bv6k=";
};
installPhase = ''
runHook preInstall
2020-02-02 09:59:48 +00:00
install -Dm644 -t $out/share/fonts/truetype dist/*.ttf
install -Dm644 -t $out/share/fonts/woff2 dist/*.woff2
runHook postInstall
2020-02-02 09:59:48 +00:00
'';
meta = with lib; {
description = "An advanced, open source, hyperrealistic, multilingual typewriter font for a new decade";
homepage = "https://ctrlcctrlv.github.io/TT2020";
license = licenses.ofl;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.all;
};
}