summary refs log tree commit diff
path: root/pkgs/misc/lilypond
diff options
context:
space:
mode:
authorEric Bailey <eric@ericb.me>2019-06-10 03:11:20 -0500
committerEric Bailey <eric@ericb.me>2019-06-10 12:30:29 -0500
commit54e8c673757e22ee77103d7ea96791a1eb6d79b8 (patch)
tree623a71d45141dc5b67c538e44b4b5f6850d82d56 /pkgs/misc/lilypond
parent287ab732d941115a86e1fd08db7faf1dda21d0fe (diff)
downloadnixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar.gz
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar.bz2
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar.lz
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar.xz
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.tar.zst
nixpkgs-54e8c673757e22ee77103d7ea96791a1eb6d79b8.zip
lilypond-unstable: rework, 2.19.65 -> 2.19.83
- fetchurl -> fetchgit
- urw-fonts -> ghostscript/share/fonts
- overrideDerivation -> overrideAttrs
Diffstat (limited to 'pkgs/misc/lilypond')
-rw-r--r--pkgs/misc/lilypond/unstable.nix35
1 files changed, 16 insertions, 19 deletions
diff --git a/pkgs/misc/lilypond/unstable.nix b/pkgs/misc/lilypond/unstable.nix
index df83502aa88..ce72c1fdfee 100644
--- a/pkgs/misc/lilypond/unstable.nix
+++ b/pkgs/misc/lilypond/unstable.nix
@@ -1,26 +1,23 @@
-{ stdenv, fetchurl, fetchgit, rsync, lilypond, gyre-fonts }:
+{ stdenv, fetchgit, lilypond, ghostscript, gyre-fonts }:
 
-with stdenv.lib;
+let
 
-let urw-fonts = fetchgit {
-  url = "http://git.ghostscript.com/urw-core35-fonts.git";
-  rev = "1f28a6fcd2176256a995db907d9ffe6e1b9b83e9";
-  sha256 = "1nlx95l1pw5lxqp2v0rn9a7lqrsbbhzr0dy3cybk55r4a8awbr2a";
-}; in
+  version = "2.19.83";
 
-overrideDerivation lilypond (p: rec {
-  majorVersion = "2.19";
-  minorVersion = "65";
-  version="${majorVersion}.${minorVersion}";
-  name = "lilypond-${version}";
+in
 
-  src = fetchurl {
-    url = "http://download.linuxaudio.org/lilypond/sources/v${majorVersion}/lilypond-${version}.tar.gz";
-    sha256 = "0k2jy7z58j62c5cv1308ac62d6jri17wip76xrbq8s6jq6jl7phd";
-  };
-
-  configureFlags = [ "--disable-documentation" "--with-urwotf-dir=${urw-fonts}" "--with-texgyre-dir=${gyre-fonts}/share/fonts/truetype/"];
+lilypond.overrideAttrs (oldAttrs: {
+  inherit version;
 
-  buildInputs = p.buildInputs ++ [ rsync ];
+  src = fetchgit {
+    url = "https://git.savannah.gnu.org/r/lilypond.git";
+    rev = "release/${version}-1";
+    sha256 = "1ycyx9x76d79jh7wlwyyhdjkyrwnhzqpw006xn2fk35s0jrm2iz0";
+  };
 
+  configureFlags = [
+    "--disable-documentation"
+    "--with-urwotf-dir=${ghostscript}/share/ghostscript/fonts"
+    "--with-texgyre-dir=${gyre-fonts}/share/fonts/truetype/"
+  ];
 })