12 stdenv.mkDerivation rec {
17 url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
18 sha256 = "10ayj48jax2pvsv6j5gybwfsx7b74zdjj84znwag7wwf8n7l6a5a";
21 nativeBuildInputs = [ m4 ];
23 if stdenv.hostPlatform.isDarwin then
35 sed "/\.mk3/d" -i libschily/Targets.man
36 substituteInPlace man/Makefile --replace "man4" ""
37 substituteInPlace RULES/rules.prg --replace "/bin/" ""
39 ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-cc.rul
40 ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang.rul
41 ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang64.rul
42 ln -sv i586-linux-cc.rul RULES/riscv64-linux-cc.rul
51 "DESTDIR=${placeholder "out"}"
54 enableParallelBuilding = false; # parallel building fails on some linux machines
56 hardeningDisable = lib.optional stdenv.hostPlatform.isMusl "fortify";
59 homepage = "https://cdrtools.sourceforge.net/private/cdrecord.html";
60 description = "Highly portable CD/DVD/BluRay command line recording software";
61 license = with licenses; [
66 platforms = with platforms; linux ++ darwin;
67 # Licensing issues: This package contains code licensed under CDDL, GPL2
68 # and LGPL2. There is a debate regarding the legality of distributing this
69 # package in binary form.