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