2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, m4, acl, libcap, Carbon, IOKit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cdrtools";
|
|
|
|
version = "3.02a09";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "10ayj48jax2pvsv6j5gybwfsx7b74zdjj84znwag7wwf8n7l6a5a";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
buildInputs = if stdenv.isDarwin then [ Carbon IOKit ] else [ acl libcap ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed "/\.mk3/d" -i libschily/Targets.man
|
|
|
|
substituteInPlace man/Makefile --replace "man4" ""
|
|
|
|
substituteInPlace RULES/rules.prg --replace "/bin/" ""
|
2021-12-30 13:39:12 +00:00
|
|
|
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
|
|
|
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-cc.rul
|
|
|
|
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang.rul
|
|
|
|
ln -sv i386-darwin-clang64.rul RULES/arm64-darwin-clang64.rul
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
makeFlags = [ "GMAKE_NOWARN=true" "INS_BASE=/" "INS_RBASE=/" "DESTDIR=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = false; # parallel building fails on some linux machines
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://cdrtools.sourceforge.net/private/cdrecord.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Highly portable CD/DVD/BluRay command line recording software";
|
|
|
|
license = with licenses; [ cddl gpl2 lgpl21 ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
# Licensing issues: This package contains code licensed under CDDL, GPL2
|
|
|
|
# and LGPL2. There is a debate regarding the legality of distributing this
|
|
|
|
# package in binary form.
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|