@@ -1,33 +1,33 @@
1−{ stdenv, fetchurl, acl, libcap, Carbon, IOKit }:
1+{ stdenv, fetchurl, m4, acl, libcap, Carbon, IOKit }:
22
33stdenv.mkDerivation rec {
44 pname = "cdrtools";
5− version = "3.02a06";
5+ version = "3.02a09";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
9− sha256 = "1cayhfbhj5g2vgmkmq5scr23k0ka5fsn0dhn0n9yllj386csnygd";
9+ sha256 = "10ayj48jax2pvsv6j5gybwfsx7b74zdjj84znwag7wwf8n7l6a5a";
1010 };
1111
12− patches = [ ./fix-paths.patch ];
13−
12+ nativeBuildInputs = [ m4 ];
1413 buildInputs = if stdenv.isDarwin then [ Carbon IOKit ] else [ acl libcap ];
1514
1615 postPatch = ''
1716 sed "/\.mk3/d" -i libschily/Targets.man
1817 substituteInPlace man/Makefile --replace "man4" ""
18+ substituteInPlace RULES/rules.prg --replace "/bin/" ""
1919 '';
2020
2121 dontConfigure = true;
2222
23− GMAKE_NOWARN = true;
23+ makeFlags = [ "GMAKE_NOWARN=true" "INS_BASE=/" "INS_RBASE=/" "DESTDIR=${placeholder "out"}" ];
2424
25− makeFlags = [ "INS_BASE=/" "INS_RBASE=/" "DESTDIR=$(out)" ];
25+ enableParallelBuilding = false; # parallel building fails on some linux machines
2626
2727 meta = with stdenv.lib; {
28− homepage = https://sourceforge.net/projects/cdrtools/;
28+ homepage = "http://cdrtools.sourceforge.net/private/cdrecord.html";
2929 description = "Highly portable CD/DVD/BluRay command line recording software";
30− license = with licenses; [ gpl2 lgpl2 cddl ];
30+ license = with licenses; [ cddl gpl2 lgpl21 ];
3131 platforms = with platforms; linux ++ darwin;
3232 # Licensing issues: This package contains code licensed under CDDL, GPL2
3333 # and LGPL2. There is a debate regarding the legality of distributing this