about summary refs log tree commit diff
path: root/pkgs/data/fonts/redhat-liberation-fonts
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-11-04 00:36:24 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-11-04 00:37:43 +0300
commite85f67f21563756be494ad938bdfc5bf068c7ef0 (patch)
tree3f213af9db61299f04e2e7f1081254600f498bbe /pkgs/data/fonts/redhat-liberation-fonts
parentbf179ce79543bb0c0e656280a0f9a1198ad43c16 (diff)
downloadnixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar.gz
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar.bz2
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar.lz
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar.xz
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.tar.zst
nixlib-e85f67f21563756be494ad938bdfc5bf068c7ef0.zip
Update Liberation fonts
Diffstat (limited to 'pkgs/data/fonts/redhat-liberation-fonts')
-rw-r--r--pkgs/data/fonts/redhat-liberation-fonts/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/data/fonts/redhat-liberation-fonts/default.nix b/pkgs/data/fonts/redhat-liberation-fonts/default.nix
index 08faeafc619c..0f29f166d369 100644
--- a/pkgs/data/fonts/redhat-liberation-fonts/default.nix
+++ b/pkgs/data/fonts/redhat-liberation-fonts/default.nix
@@ -1,18 +1,20 @@
-{stdenv, fetchurl}:
+{stdenv, fetchurl, fontforge, python, pythonPackages}:
 
 stdenv.mkDerivation rec {
-  name = "liberation-fonts-1.04";
+  name = "liberation-fonts-2.00.1";
   src = fetchurl {
     url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
-    sha256 = "189i6pc4jqhhmsb9shi8afg9af9crpmz9bnlldhqaxavr1bhj38f";
+    sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
   };
   
+  buildInputs = [fontforge python pythonPackages.fonttools];
+
   installPhase = ''
     mkdir -p $out/share/fonts/truetype
-    cp -v *.ttf $out/share/fonts/truetype
+    cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
 
     mkdir -p "$out/doc/${name}"
-    cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}"
+    cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
   '';
 
   meta = {