2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "open-fonts";
|
|
|
|
version = "0.7.0";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
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-28 23:13:55 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
install *.ttf $out/share/fonts/truetype
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-06-28 23:13:55 +00: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;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ moni ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|