btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / go / goudy-bookletter-1911 / package.nix
blob8e5d9c95e1dce455d27b6534f3337c01c8544c12
1 { lib, fetchFromGitHub, stdenvNoCC }:
3 stdenvNoCC.mkDerivation {
4   pname = "goudy-bookletter-1911";
5   version = "2011-05-11";
7   src = fetchFromGitHub {
8     owner = "theleagueof";
9     repo = "goudy-bookletter-1911";
10     rev = "85ff5b834b4f63feb36fd2053949c19660580e48";
11     hash = "sha256-11axs1+SRQj+1lYTq2LYf1I65WrrvB/UnAgZkHPP1N8=";
12   };
14   installPhase = ''
15     runHook preInstall
17     install -D -m444 -t $out/share/fonts/opentype $src/*.otf
19     runHook postInstall
20   '';
22   meta = {
23     description = "Public domain font based on Frederic Goudy’s Kennerley Oldstyle";
24     homepage = "https://www.theleagueofmoveabletype.com/goudy-bookletter-1911";
25     license = lib.licenses.ofl;
26     maintainers = with lib.maintainers; [ minijackson ];
27   };