mini-calc: 3.3.3 -> 3.3.5 (#372274)
[NixPkgs.git] / pkgs / by-name / li / libre-caslon / package.nix
blob6f766f2df98ad1b897428febe7441d0c4d3b5f64
2   lib,
3   stdenv,
4   fetchFromGitHub,
5 }:
7 stdenv.mkDerivation rec {
8   pname = "libre-caslon";
9   version = "1.002";
11   srcs = [
12     (fetchFromGitHub {
13       owner = "impallari";
14       repo = "Libre-Caslon-Text";
15       rev = "c31e21f7e8cf91f18d90f778ce20e66c68219c74";
16       name = "libre-caslon-text-${version}-src";
17       sha256 = "0zczv9qm8cgc7w1p64mnf0p0fi7xv89zhf1zzf1qcna15kbgc705";
18     })
20     (fetchFromGitHub {
21       owner = "impallari";
22       repo = "Libre-Caslon-Display";
23       rev = "3491f6a9cfde2bc15e736463b0bc7d93054d5da1";
24       name = "libre-caslon-display-${version}-src";
25       sha256 = "12jrny3y8w8z61lyw470drnhliji5b24lgxap4w3brp6z3xjph95";
26     })
27   ];
29   sourceRoot = ".";
31   installPhase = ''
32     mkdir -p $out/share/fonts/opentype
33     mkdir -p $out/share/doc/${pname}-${version}
34     cp -v "libre-caslon-text-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
35     cp -v "libre-caslon-display-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
36     cp -v libre-caslon-text-${version}-src/README.md libre-caslon-text-${version}-src/FONTLOG.txt $out/share/doc/${pname}-${version}
37   '';
39   outputHashAlgo = "sha256";
40   outputHashMode = "recursive";
41   outputHash = "05aajwny99yqzn1nnq1blx6h7rl54x056y12hyawfbigkzxhscns";
43   meta = with lib; {
44     description = "Caslon fonts based on hand-lettered American Caslons of 1960s";
45     homepage = "http://www.impallari.com/librecaslon";
46     license = licenses.ofl;
47     maintainers = with maintainers; [ cmfwyp ];
48     platforms = platforms.all;
49   };