summary refs log tree commit diff
path: root/pkgs/data/fonts/quattrocento/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/quattrocento/default.nix')
-rw-r--r--pkgs/data/fonts/quattrocento/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/data/fonts/quattrocento/default.nix b/pkgs/data/fonts/quattrocento/default.nix
new file mode 100644
index 00000000000..7ef62d2300c
--- /dev/null
+++ b/pkgs/data/fonts/quattrocento/default.nix
@@ -0,0 +1,29 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation rec {
+  name = "quattrocento-${version}";
+  version = "1.1";
+
+  src = fetchurl {
+    url = "http://www.impallari.com/media/releases/quattrocento-v${version}.zip";
+    sha256 = "09wmbfwkry1r2cf5z4yy67wd4yzlnsjigg01r5r80z1phl0axn9n";
+  };
+
+  buildInputs = [unzip];
+  phases = ["unpackPhase" "installPhase"];
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/opentype
+    mkdir -p $out/share/doc/${name}
+    cp -v "src/"*.otf $out/share/fonts/opentype
+    cp -v FONTLOG.txt $out/share/doc/${name}
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://www.impallari.com/quattrocento/;
+    description = "A classic, elegant, sober and strong serif typeface";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = [maintainers.rycee];
+  };
+}