about summary refs log tree commit diff
path: root/pkgs/data/fonts/lmmath
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2022-09-29 00:52:55 -0700
committerArtturin <Artturin@artturin.com>2023-01-17 01:03:11 +0200
commitaf89d3a2be6f70edb187dd817377d6c4360134fa (patch)
tree432c3ff8a5c9e40ac5fef7d6387e12db60310cc9 /pkgs/data/fonts/lmmath
parentea27fb07efe68cb426593a4d7c2efe469621021d (diff)
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/lmmath')
-rw-r--r--pkgs/data/fonts/lmmath/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/data/fonts/lmmath/default.nix b/pkgs/data/fonts/lmmath/default.nix
index 0530141317b8e..ebe4ceb88ca11 100644
--- a/pkgs/data/fonts/lmmath/default.nix
+++ b/pkgs/data/fonts/lmmath/default.nix
@@ -1,17 +1,12 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
 
 let
   version = "1.959";
-in fetchzip rec {
+in (fetchzip rec {
   name = "lmmath-${version}";
 
   url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
-  postFetch = ''
-    mkdir -p $out/share/fonts/opentype/
-    mkdir -p $out/share/doc/latinmodern-math-${version}/
-    unzip -j $downloadedFile "*/otf/*.otf" -d $out/share/fonts/opentype/
-    unzip -j $downloadedFile "*/doc/*.txt" -d $out/share/doc/latinmodern-math-${version}/
-  '';
   sha256 = "05k145bxgxjh7i9gx1ahigxfpc2v2vwzsy2mc41jvvg51kjr8fnn";
 
   meta = with lib; {
@@ -24,4 +19,11 @@ in fetchzip rec {
     maintainers = with maintainers; [ siddharthist ];
     platforms = platforms.all;
   };
-}
+}).overrideAttrs (_: {
+  postFetch = ''
+    mkdir -p $out/share/fonts/opentype/
+    mkdir -p $out/share/doc/latinmodern-math-${version}/
+    unzip -j $downloadedFile "*/otf/*.otf" -d $out/share/fonts/opentype/
+    unzip -j $downloadedFile "*/doc/*.txt" -d $out/share/doc/latinmodern-math-${version}/
+  '';
+})