lilypond: rework

- fetchurl -> fetchgit
- urwfonts -> ghostscript/share/fonts
- Add me as maintainer
This commit is contained in:
Eric Bailey 2019-06-10 03:08:09 -05:00
parent 80b51d983a
commit 79478b8369

View file

@ -1,26 +1,26 @@
{ stdenv, fetchurl, ghostscript, texinfo, imagemagick, texi2html, guile
{ stdenv, fetchgit, ghostscript, texinfo, imagemagick, texi2html, guile
, python2, gettext, flex, perl, bison, pkgconfig, autoreconfHook, dblatex
, fontconfig, freetype, pango, fontforge, help2man, zip, netpbm, groff
, fetchsvn, makeWrapper, t1utils
, makeWrapper, t1utils
, texlive, tex ? texlive.combine {
inherit (texlive) scheme-small lh metafont epsf;
}
}:
stdenv.mkDerivation rec{
majorVersion="2.18";
minorVersion="2";
version="${majorVersion}.${minorVersion}";
name = "lilypond-${version}";
let
urwfonts = fetchsvn {
url = "http://svn.ghostscript.com/ghostscript/tags/urw-fonts-1.0.7pre44";
sha256 = "0al5vdsb66db6yzwi0qgs1dnd1i1fb77cigdjxg8zxhhwf6hhwpn";
};
version = "2.18.2";
src = fetchurl {
url = "http://download.linuxaudio.org/lilypond/sources/v${majorVersion}/lilypond-${version}.tar.gz";
sha256 = "01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j";
in
stdenv.mkDerivation {
pname = "lilypond";
inherit version;
src = fetchgit {
url = "https://git.savannah.gnu.org/r/lilypond.git";
rev = "release/${version}-1";
sha256 = "0fk045fmmb6fcv7jdvkbqr04qlwnxzwclr2gzx3gja714xy6a76x";
};
postInstall = ''
@ -33,7 +33,10 @@ stdenv.mkDerivation rec{
done
'';
configureFlags = [ "--disable-documentation" "--with-ncsb-dir=${urwfonts}"];
configureFlags = [
"--disable-documentation"
"--with-ncsb-dir=${ghostscript}/share/ghostscript/fonts"
];
preConfigure = ''
sed -e "s@mem=mf2pt1@mem=$PWD/mf/mf2pt1@" -i scripts/build/mf2pt1.pl
@ -56,7 +59,7 @@ stdenv.mkDerivation rec{
description = "Music typesetting system";
homepage = http://lilypond.org/;
license = licenses.gpl3;
maintainers = [ maintainers.marcweber ];
maintainers = with maintainers; [ marcweber yurrriq ];
platforms = platforms.all;
};