about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorcmfwyp <cmfwyp@riseup.net>2016-09-10 21:18:48 -0400
committerRobert Helgesson <robert@rycee.net>2016-09-12 11:13:26 +0200
commitd6404ad48eb068709d919ab82b9720ca39571f5d (patch)
treee38ee1c9df1482db4b3501a5aed2f60beb47fe09 /pkgs
parent29f00f954b3b03bc69fbc8e7e02ad75b3fb28311 (diff)
downloadnixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar.gz
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar.bz2
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar.lz
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar.xz
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.tar.zst
nixlib-d6404ad48eb068709d919ab82b9720ca39571f5d.zip
cabin: init at 1.005
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/data/fonts/cabin/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/data/fonts/cabin/default.nix b/pkgs/data/fonts/cabin/default.nix
new file mode 100644
index 000000000000..8e432db84183
--- /dev/null
+++ b/pkgs/data/fonts/cabin/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "cabin-1.005";
+
+  src = fetchFromGitHub {
+    owner = "impallari";
+    repo = "Cabin";
+    rev = "982839c790e9dc57c343972aa34c51ed3b3677fd";
+    sha256 = "16v7spviphvdh2rrr8klv11lc9hxphg12ddf0qs7xdx801ri0ppn";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype
+    mkdir -p $out/share/doc/${name}
+    cp -v "fonts/OTF/"*.otf $out/share/fonts/opentype/
+    cp -v README.md FONTLOG.txt $out/share/doc/${name}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A humanist sans with 4 weights and true italics";
+    longDescription = ''
+      The Cabin font family is a humanist sans with 4 weights and true italics,
+      inspired by Edward Johnston’s and Eric Gill’s typefaces, with a touch of
+      modernism. Cabin incorporates modern proportions, optical adjustments, and
+      some elements of the geometric sans. It remains true to its roots, but has
+      its own personality.
+
+      The weight distribution is almost monotone, although top and bottom curves
+      are slightly thin. Counters of the b, g, p and q are rounded and optically
+      adjusted. The curved stem endings have a 10 degree angle. E and F have
+      shorter center arms. M is splashed.
+    '';
+    homepage = http://www.impallari.com/cabin;
+    license = licenses.ofl;
+    maintainers = with maintainers; [ cmfwyp ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index dde5a1d683a4..d3b7c95e5a09 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12017,6 +12017,8 @@ in
 
   docbook5_xsl = self.docbook_xsl_ns;
 
+  cabin = callPackage ../data/fonts/cabin { };
+
   dosemu_fonts = callPackage ../data/fonts/dosemu-fonts { };
 
   eb-garamond = callPackage ../data/fonts/eb-garamond { };