summary refs log tree commit diff
path: root/pkgs/data/fonts/libre-caslon
diff options
context:
space:
mode:
authorcmfwyp <cmfwyp@riseup.net>2016-09-10 21:33:58 -0400
committerRobert Helgesson <robert@rycee.net>2016-09-12 11:13:33 +0200
commit323e74f457ee8d3a10a23abd38c83b2724a6f435 (patch)
treea83dc57f9e692b12540dba47f41b31614bec7426 /pkgs/data/fonts/libre-caslon
parentdb73ecc0f7e31010040563d2c5f14352afb647ce (diff)
downloadnixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar.gz
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar.bz2
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar.lz
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar.xz
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.tar.zst
nixpkgs-323e74f457ee8d3a10a23abd38c83b2724a6f435.zip
libre-caslon: init at 1.002
Diffstat (limited to 'pkgs/data/fonts/libre-caslon')
-rw-r--r--pkgs/data/fonts/libre-caslon/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/data/fonts/libre-caslon/default.nix b/pkgs/data/fonts/libre-caslon/default.nix
new file mode 100644
index 00000000000..5037cb81f39
--- /dev/null
+++ b/pkgs/data/fonts/libre-caslon/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "libre-caslon-${version}";
+  version = "1.002";
+
+  srcs = [
+    (fetchFromGitHub {
+      owner = "impallari";
+      repo = "Libre-Caslon-Text";
+      rev = "c31e21f7e8cf91f18d90f778ce20e66c68219c74";
+      name = "libre-caslon-text-${version}-src";
+      sha256 = "0zczv9qm8cgc7w1p64mnf0p0fi7xv89zhf1zzf1qcna15kbgc705";
+    })
+
+    (fetchFromGitHub {
+      owner = "impallari";
+      repo = "Libre-Caslon-Display";
+      rev = "3491f6a9cfde2bc15e736463b0bc7d93054d5da1";
+      name = "libre-caslon-display-${version}-src";
+      sha256 = "12jrny3y8w8z61lyw470drnhliji5b24lgxap4w3brp6z3xjph95";
+    })
+  ];
+
+  sourceRoot = ".";
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype
+    mkdir -p $out/share/doc/${name}
+    cp -v "libre-caslon-text-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
+    cp -v "libre-caslon-display-${version}-src/fonts/OTF/"*.otf $out/share/fonts/opentype/
+    cp -v libre-caslon-text-${version}-src/README.md libre-caslon-text-${version}-src/FONTLOG.txt $out/share/doc/${name}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Caslon fonts based on hand-lettered American Caslons of 1960s";
+    homepage = http://www.impallari.com/librecaslon;
+    license = licenses.ofl;
+    maintainers = with maintainers; [ cmfwyp ];
+    platforms = platforms.all;
+  };
+}