2017-10-24 09:06:29 +00:00
|
|
|
{stdenv, fetchurl, libvorbis, libmad, pkgconfig, libao}:
|
2008-07-25 13:04:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-10-26 23:03:47 +00:00
|
|
|
name = "cdrdao-1.2.3";
|
2008-07-25 13:04:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/cdrdao/cdrdao-1.2.3.tar.bz2";
|
2009-10-26 23:03:47 +00:00
|
|
|
sha256 = "0pmpgx91j984snrsxbq1dgf3ximks2dfh1sqqmic72lrls7wp4w1";
|
2008-07-25 13:04:51 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "RM=rm" "LN=ln" "MV=mv" ];
|
2008-07-25 13:04:51 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-10-24 09:06:29 +00:00
|
|
|
buildInputs = [ libvorbis libmad libao ];
|
2009-10-26 23:03:47 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-08 17:19:49 +00:00
|
|
|
|
2011-01-10 14:59:24 +00: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-26 23:03:47 +00: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 14:59:24 +00:00
|
|
|
postPatch = ''
|
2009-10-26 23:03:47 +00:00
|
|
|
sed -i 's,linux/../,,g' dao/sg_err.h
|
|
|
|
'';
|
2008-07-25 13:04:51 +00:00
|
|
|
|
2017-07-25 10:01:38 +00:00
|
|
|
# Needed on gcc >= 6.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
|
|
|
2018-09-07 20:40:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2008-07-25 13:04:51 +00:00
|
|
|
description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://cdrdao.sourceforge.net/";
|
2018-09-07 20:40:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2008-07-25 13:04:51 +00:00
|
|
|
};
|
|
|
|
}
|