2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, m4, acl, libcap, Carbon, IOKit }:
|
2005-08-30 20:41:10 +01:00
|
|
|
|
2014-05-18 12:25:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cdrtools";
|
2019-10-19 22:08:06 +01:00
|
|
|
version = "3.02a09";
|
2014-07-10 12:11:32 +01:00
|
|
|
|
2005-08-30 20:41:10 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/cdrtools/${pname}-${version}.tar.bz2";
|
2019-10-19 22:08:06 +01:00
|
|
|
sha256 = "10ayj48jax2pvsv6j5gybwfsx7b74zdjj84znwag7wwf8n7l6a5a";
|
2005-08-30 20:41:10 +01:00
|
|
|
};
|
2014-07-10 12:11:32 +01:00
|
|
|
|
2019-10-19 22:08:06 +01:00
|
|
|
nativeBuildInputs = [ m4 ];
|
2019-07-12 16:26:08 +01:00
|
|
|
buildInputs = if stdenv.isDarwin then [ Carbon IOKit ] else [ acl libcap ];
|
2015-12-11 22:36:52 +00:00
|
|
|
|
2016-03-16 05:59:05 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed "/\.mk3/d" -i libschily/Targets.man
|
|
|
|
substituteInPlace man/Makefile --replace "man4" ""
|
2019-10-19 22:08:06 +01:00
|
|
|
substituteInPlace RULES/rules.prg --replace "/bin/" ""
|
2016-03-16 05:59:05 +00:00
|
|
|
'';
|
|
|
|
|
2019-06-19 16:36:06 +01:00
|
|
|
dontConfigure = true;
|
2015-12-11 22:36:52 +00:00
|
|
|
|
2019-10-19 22:08:06 +01:00
|
|
|
makeFlags = [ "GMAKE_NOWARN=true" "INS_BASE=/" "INS_RBASE=/" "DESTDIR=${placeholder "out"}" ];
|
2015-12-11 22:36:52 +00:00
|
|
|
|
2019-10-19 22:08:06 +01:00
|
|
|
enableParallelBuilding = false; # parallel building fails on some linux machines
|
2007-10-19 15:16:43 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-19 22:08:06 +01:00
|
|
|
homepage = "http://cdrtools.sourceforge.net/private/cdrecord.html";
|
2014-07-10 12:11:32 +01:00
|
|
|
description = "Highly portable CD/DVD/BluRay command line recording software";
|
2019-10-19 22:08:06 +01:00
|
|
|
license = with licenses; [ cddl gpl2 lgpl21 ];
|
2019-07-12 16:26:08 +01:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-04-23 02:11:19 +01:00
|
|
|
# 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 = [];
|
2007-10-19 15:16:43 +01:00
|
|
|
};
|
2005-08-30 20:41:10 +01:00
|
|
|
}
|