1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "libre-caslon";
10 repo = "Libre-Caslon-Text";
11 rev = "c31e21f7e8cf91f18d90f778ce20e66c68219c74";
12 name = "libre-caslon-text-${version}-src";
13 sha256 = "0zczv9qm8cgc7w1p64mnf0p0fi7xv89zhf1zzf1qcna15kbgc705";
18 repo = "Libre-Caslon-Display";
19 rev = "3491f6a9cfde2bc15e736463b0bc7d93054d5da1";
20 name = "libre-caslon-display-${version}-src";
21 sha256 = "12jrny3y8w8z61lyw470drnhliji5b24lgxap4w3brp6z3xjph95";
28 mkdir -p $out/share/fonts/opentype
29 mkdir -p $out/share/doc/${pname}-${version}
30 cp -v "libre-caslon-text-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
31 cp -v "libre-caslon-display-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
32 cp -v libre-caslon-text-${version}-src/README.md libre-caslon-text-${version}-src/FONTLOG.txt $out/share/doc/${pname}-${version}
35 outputHashAlgo = "sha256";
36 outputHashMode = "recursive";
37 outputHash = "05aajwny99yqzn1nnq1blx6h7rl54x056y12hyawfbigkzxhscns";
40 description = "Caslon fonts based on hand-lettered American Caslons of 1960s";
41 homepage = "http://www.impallari.com/librecaslon";
42 license = licenses.ofl;
43 maintainers = with maintainers; [ cmfwyp ];
44 platforms = platforms.all;