nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "libre-franklin";
5 version = "1.014";
6
7 src = fetchFromGitHub {
8 owner = "impallari";
9 repo = "Libre-Franklin";
10 rev = "006293f34c47bd752fdcf91807510bc3f91a0bd3";
11 hash = "sha256-GR1KHiQ1lTOmU8eAPR2pxUlMpWiW2EDMG78VDjELxDU=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -m444 -Dt $out/share/fonts/opentype */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 = "A reinterpretation and expansion based on the 1912 Morris Fuller Benton’s classic.";
25 homepage = "https://github.com/impallari/Libre-Franklin";
26 license = licenses.ofl;
27 maintainers = with maintainers; [ cmfwyp ];
28 platforms = platforms.all;
29 };
30}