nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "libre-bodoni";
5 version = "2.000";
6
7 src = fetchFromGitHub {
8 owner = "impallari";
9 repo = "Libre-Bodoni";
10 rev = "995a40e8d6b95411d660cbc5bb3f726ffd080c7d";
11 hash = "sha256-yfqVeT/JiAT+fsqkXUxqlz4sEEFwEJUdvFTAzuqejtk=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -m444 -Dt $out/share/fonts/opentype */v2000\ -\ initial\ glyphs\ migration/OTF/*.otf
18 install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
19
20 runHook postInstall
21 '';
22
23 meta = with lib; {
24 description = "Bodoni fonts adapted for today's web requirements";
25 longDescription = ''
26 The Libre Bodoni fonts are based on the 19th century Morris Fuller
27 Benton's ATF design, but specifically adapted for today's web
28 requirements.
29
30 They are a perfect choice for everything related to elegance, style,
31 luxury and fashion.
32
33 Libre Bodoni currently features four styles: Regular, Italic, Bold and
34 Bold Italic.
35 '';
36 homepage = "https://github.com/impallari/Libre-Bodoni";
37 license = licenses.ofl;
38 maintainers = with maintainers; [ cmfwyp ];
39 platforms = platforms.all;
40 };
41}