{ungoogled-,}chromium,chromedriver: 130.0.6723.58 -> 130.0.6723.69 (#351519)
[NixPkgs.git] / pkgs / data / fonts / libre-caslon / default.nix
blobd89d4c41c0f3b9906353aae3cfda8707b3911f9d
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "libre-caslon";
5   version = "1.002";
7   srcs = [
8     (fetchFromGitHub {
9       owner = "impallari";
10       repo = "Libre-Caslon-Text";
11       rev = "c31e21f7e8cf91f18d90f778ce20e66c68219c74";
12       name = "libre-caslon-text-${version}-src";
13       sha256 = "0zczv9qm8cgc7w1p64mnf0p0fi7xv89zhf1zzf1qcna15kbgc705";
14     })
16     (fetchFromGitHub {
17       owner = "impallari";
18       repo = "Libre-Caslon-Display";
19       rev = "3491f6a9cfde2bc15e736463b0bc7d93054d5da1";
20       name = "libre-caslon-display-${version}-src";
21       sha256 = "12jrny3y8w8z61lyw470drnhliji5b24lgxap4w3brp6z3xjph95";
22     })
23   ];
25   sourceRoot = ".";
27   installPhase = ''
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}
33   '';
35   outputHashAlgo = "sha256";
36   outputHashMode = "recursive";
37   outputHash = "05aajwny99yqzn1nnq1blx6h7rl54x056y12hyawfbigkzxhscns";
39   meta = with lib; {
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;
45   };