summary refs log tree commit diff
path: root/pkgs/misc/lilypond/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/lilypond/default.nix')
-rw-r--r--pkgs/misc/lilypond/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/misc/lilypond/default.nix b/pkgs/misc/lilypond/default.nix
index 21df615d6616..8b2be0914e3e 100644
--- a/pkgs/misc/lilypond/default.nix
+++ b/pkgs/misc/lilypond/default.nix
@@ -25,6 +25,11 @@ stdenv.mkDerivation rec{
 
   preConfigure=''
     sed -e "s@mem=mf2pt1@mem=$PWD/mf/mf2pt1@" -i scripts/build/mf2pt1.pl
+
+    # At some point our fontforge had path 2n…-fontforge-2015… and it
+    # confused the version detection…
+    sed -re 's%("[$]exe" --version .*)([|\\] *$)%\1 | sed -re "s@/nix/store/[a-z0-9]{32}-@@" \2%' \
+      -i configure
   '';
 
   postInstall = ''