2009-10-27 00:03:47 +01:00
|
|
|
{stdenv, fetchurl, lame, libvorbis, libmad, pkgconfig, libao}:
|
2008-07-25 15:04:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-10-27 00:03:47 +01:00
|
|
|
name = "cdrdao-1.2.3";
|
2008-07-25 15:04:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-10-27 00:03:47 +01:00
|
|
|
url = mirror://sourceforge/cdrdao/cdrdao-1.2.3.tar.bz2;
|
|
|
|
sha256 = "0pmpgx91j984snrsxbq1dgf3ximks2dfh1sqqmic72lrls7wp4w1";
|
2008-07-25 15:04:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "RM=rm LN=ln MV=mv";
|
|
|
|
|
2009-10-27 00:03:47 +01:00
|
|
|
buildInputs = [ lame libvorbis libmad pkgconfig libao ];
|
|
|
|
|
2011-01-10 15:59:24 +01:00
|
|
|
# Adjust some headers to match glibc 2.12 ... patch is a diff between
|
|
|
|
# the cdrdao CVS head and the 1.2.3 release.
|
|
|
|
patches = [ ./adjust-includes-for-glibc-212.patch ];
|
|
|
|
|
2009-10-27 00:03:47 +01:00
|
|
|
# we have glibc/include/linux as a symlink to the kernel headers,
|
|
|
|
# and the magic '..' points to kernelheaders, and not back to the glibc/include
|
2011-01-10 15:59:24 +01:00
|
|
|
postPatch = ''
|
2009-10-27 00:03:47 +01:00
|
|
|
sed -i 's,linux/../,,g' dao/sg_err.h
|
|
|
|
'';
|
2008-07-25 15:04:51 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
|
|
|
|
homepage = http://cdrdao.sourceforge.net/;
|
|
|
|
};
|
|
|
|
}
|