2014-12-14 16:07:37 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, cmake, qt4, perl, shared_mime_info, libvorbis, taglib
|
2011-10-12 23:59:36 +02:00
|
|
|
, flac, libsamplerate, libdvdread, lame, libsndfile, libmad, gettext
|
2014-12-14 16:07:37 +01:00
|
|
|
, transcode, cdrdao, dvdplusrwtools, vcdimager, cdparanoia
|
2013-05-07 10:26:37 +02:00
|
|
|
, kdelibs, kdemultimedia, automoc4, phonon, libkcddb ? null
|
2010-10-18 11:48:32 +02:00
|
|
|
}:
|
2008-06-26 16:38:28 +02:00
|
|
|
|
2010-10-18 11:48:32 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-03-11 21:43:38 +01:00
|
|
|
name = "k3b-2.0.2";
|
2011-10-12 23:59:36 +02:00
|
|
|
|
2008-06-26 16:38:28 +02:00
|
|
|
src = fetchurl {
|
2010-10-18 11:48:32 +02:00
|
|
|
url = "mirror://sourceforge/k3b/${name}.tar.bz2";
|
2011-03-11 21:43:38 +01:00
|
|
|
sha256 = "1kdpylz3w9bg02jg4mjhqz8bq1yb4xi4fqfl9139qcyjq4lny5xg";
|
2008-06-26 16:38:28 +02:00
|
|
|
};
|
|
|
|
|
2011-10-12 23:59:36 +02:00
|
|
|
buildInputs =
|
|
|
|
[ cmake qt4 perl shared_mime_info libvorbis taglib
|
|
|
|
flac libsamplerate libdvdread lame libsndfile
|
2014-12-17 19:11:30 +01:00
|
|
|
libmad gettext stdenv.cc.libc
|
2011-10-12 23:59:36 +02:00
|
|
|
kdelibs kdemultimedia automoc4 phonon
|
2014-12-14 16:07:37 +01:00
|
|
|
libkcddb makeWrapper cdparanoia
|
2014-04-05 20:43:00 +02:00
|
|
|
];
|
2008-06-26 16:38:28 +02:00
|
|
|
|
2011-10-12 23:59:36 +02:00
|
|
|
enableParallelBuilding = true;
|
2014-06-24 17:03:58 +02:00
|
|
|
|
|
|
|
# at runtime, k3b needs the executables cdrdao, cdrecord, dvd+rw-format,
|
|
|
|
# eMovix, growisofs, mkisofs, normalize, readcd, transcode, vcdxbuild,
|
|
|
|
# vcdxminfo, and vcdxrip
|
|
|
|
propagatedUserEnvPkgs = [ transcode dvdplusrwtools cdrdao vcdimager ];
|
2014-12-14 16:07:37 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/k3b \
|
|
|
|
--prefix LD_LIBRARY_PATH ":" "${cdparanoia}/lib"
|
|
|
|
'';
|
2011-10-12 23:59:36 +02:00
|
|
|
|
2010-10-18 11:48:32 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CD/DVD Burning Application for KDE";
|
|
|
|
license = licenses.gpl2Plus;
|
2013-05-07 10:26:37 +02:00
|
|
|
maintainers = [ maintainers.sander maintainers.urkud maintainers.phreedom ];
|
2011-04-29 20:25:46 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2008-06-26 16:38:28 +02:00
|
|
|
};
|
|
|
|
}
|