summary refs log tree commit diff
path: root/pkgs/data/fonts/paratype-pt/serif.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/paratype-pt/serif.nix')
-rw-r--r--pkgs/data/fonts/paratype-pt/serif.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/data/fonts/paratype-pt/serif.nix b/pkgs/data/fonts/paratype-pt/serif.nix
index a4142f757fc..abe6c3d87f6 100644
--- a/pkgs/data/fonts/paratype-pt/serif.nix
+++ b/pkgs/data/fonts/paratype-pt/serif.nix
@@ -1,6 +1,7 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
 
-fetchzip {
+(fetchzip {
   name = "paratype-pt-serif";
 
   urls = [
@@ -8,12 +9,6 @@ fetchzip {
     "http://rus.paratype.ru/system/attachments/634/original/ptserif.zip"
   ];
 
-  postFetch = ''
-    mkdir -p $out/share/{doc,fonts}
-    unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
-    unzip -j $downloadedFile \*.txt -d $out/share/doc/paratype
-  '';
-
   sha256 = "1iw5qi4ag3yp1lwmi91lb18gr768bqwl46xskaqnkhr9i9qp0v6d";
 
   meta = with lib; {
@@ -28,5 +23,10 @@ fetchzip {
     platforms = platforms.all;
     maintainers = with maintainers; [ raskin ];
   };
-}
-
+}).overrideAttrs (_: {
+  postFetch = ''
+    mkdir -p $out/share/{doc,fonts}
+    unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
+    unzip -j $downloadedFile \*.txt -d $out/share/doc/paratype
+  '';
+})