about summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-09-10 16:57:56 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-09-10 16:57:56 +0000
commit3201717bdbd66264509172df0ee31da510efcfb6 (patch)
tree72ef85d9e2db95a80edaa059c35ca7831d160101 /pkgs/misc
parent21b7f04330925fc1cb88313061d4755e4ee27680 (diff)
adding lilypond
svn path=/nixpkgs/trunk/; revision=17028
Diffstat (limited to 'pkgs/misc')
-rw-r--r--pkgs/misc/lilypond/default.nix34
-rw-r--r--pkgs/misc/lilypond/findlib.patch24
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/misc/lilypond/default.nix b/pkgs/misc/lilypond/default.nix
new file mode 100644
index 0000000000000..358401238e5de
--- /dev/null
+++ b/pkgs/misc/lilypond/default.nix
@@ -0,0 +1,34 @@
+# note: there is a jedit plugin
+args: with args;
+
+stdenv.mkDerivation {
+  name = "lilypond-2.13.3";
+
+  #src = sourceByName "lilypond";
+  #preConfigure = "./autogen.sh";
+
+  src = fetchurl {
+    url = http://download.linuxaudio.org/lilypond/sources/v2.13/lilypond-2.13.3.tar.gz;
+    sha256 = "1ihnkgpd19q3sns7k6wvx4x1ccb1cw9ins3qasfs5n7srhc3cvac";
+  };
+
+  configureFlags = [ "--disable-documentation" "--with-ncsb-dir=${ghostscript}/share/ghostscript/fonts"];
+  # configureFlags = "--disable-documentation";
+
+  buildInputs = [
+    automake autoconf
+    ghostscript texinfo imagemagick texi2html guile texinfo
+    python gettext flex perl bison pkgconfig texLive fontconfig freetype pango
+    fontforge help2man];
+
+
+  meta = { 
+    description = "music typesetting system";
+    homepage = http://lilypond.org/;
+    license = "GPL";
+    maintainers = [args.lib.maintainers.marcweber];
+    platforms = args.lib.platforms.linux;
+  };
+
+  patches = [ ./findlib.patch ];
+}
diff --git a/pkgs/misc/lilypond/findlib.patch b/pkgs/misc/lilypond/findlib.patch
new file mode 100644
index 0000000000000..30e130bc8ad84
--- /dev/null
+++ b/pkgs/misc/lilypond/findlib.patch
@@ -0,0 +1,24 @@
+diff --git a/stepmake/stepmake/executable-vars.make b/stepmake/stepmake/executable-vars.make
+index 3825101..bf37d16 100644
+--- a/stepmake/stepmake/executable-vars.make
++++ b/stepmake/stepmake/executable-vars.make
+@@ -1,4 +1,4 @@
+-MODULE_LIBES =$(addprefix $(outdir)/../, $(addsuffix /$(outbase)/library.a, $(MODULE_LIBS)))
++MODULE_LIBES =$(addprefix , $(addsuffix /$(outbase)/library.a, $(MODULE_LIBS)))
+ LOADLIBES = $(MODULE_LIBES) $($(PACKAGE)_LIBES) $(CONFIG_LIBS)
+ 
+ EXECUTABLE = $(outdir)/$(NAME)
+
+diff --git a/make/stepmake.make b/make/stepmake.make
+index 604341b..7f0d9d8 100644
+--- a/make/stepmake.make
++++ b/make/stepmake.make
+@@ -87,7 +87,7 @@ outdir=$(outroot)/$(outbase)
+ config_h=$(top-build-dir)/config$(CONFIGSUFFIX).hh
+ 
+ # The outdir that was configured for: best guess to find binaries
+-outconfbase=out$(CONFIGSUFFIX)
++outconfbase=$(outdir)
+ outconfdir=$(outroot)/$(outconfbase)
+ 
+ # user package