2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, cmake, libcap, zlib, bzip2, perl}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "cdrkit";
|
|
|
|
version = "1.1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "http://cdrkit.org/releases/cdrkit-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1nj7iv3xrq600i37na9a5idd718piiiqbs4zxvpjs66cdrsk1h6i";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libcap zlib bzip2 perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
# efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ./cdrkit-1.1.11-fno-common.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# file name compatibility with the old cdrecord (growisofs wants this name)
|
|
|
|
ln -s $out/bin/genisoimage $out/bin/mkisofs
|
|
|
|
ln -s $out/bin/wodim $out/bin/cdrecord
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
cmakeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "-DBITFIELDS_HTOL=0" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "PREFIX=\$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Portable command-line CD/DVD recorder software, mostly compatible with cdrtools";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Cdrkit is a suite of programs for recording CDs and DVDs,
|
|
|
|
blanking CD-RW media, creating ISO-9660 filesystem images,
|
|
|
|
extracting audio CD data, and more. The programs included in
|
|
|
|
the cdrkit package were originally derived from several sources,
|
|
|
|
most notably mkisofs by Eric Youngdale and others, cdda2wav by
|
|
|
|
Heiko Eissfeldt, and cdrecord by Jörg Schilling. However,
|
|
|
|
cdrkit is not affiliated with any of these authors; it is now an
|
|
|
|
independent project.
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://cdrkit.org/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|