nixpkgs/pkgs/data/fonts/open-fonts/default.nix

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

29 lines
736 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl }:
2021-06-12 11:26:28 +01:00
stdenvNoCC.mkDerivation rec {
2021-06-12 11:26:28 +01:00
pname = "open-fonts";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/kiwi0fruit/open-fonts/releases/download/${version}/open-fonts.tar.xz";
hash = "sha256-NJKbdrvgZz9G7mjAJYzN7rU/fo2xRFZA2BbQ+A56iPw=";
};
installPhase = ''
runHook preInstall
2021-06-12 11:26:28 +01:00
mkdir -p $out/share/fonts/truetype
install *.ttf $out/share/fonts/truetype
runHook postInstall
2021-06-12 11:26:28 +01:00
'';
meta = with lib; {
description = "A collection of beautiful free and open source fonts";
homepage = "https://github.com/kiwi0fruit/open-fonts";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ fortuneteller2k ];
};
}