2010-10-18 09:48:32 +00:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, perl, shared_mime_info, libvorbis, taglib
|
2011-10-12 21:59:36 +00:00
|
|
|
, flac, libsamplerate, libdvdread, lame, libsndfile, libmad, gettext
|
2013-05-07 08:26:37 +00:00
|
|
|
, kdelibs, kdemultimedia, automoc4, phonon, libkcddb ? null
|
2014-03-25 22:25:37 +00:00
|
|
|
, makeWrapper, cdrkit, cdrdao, dvdplusrwtools
|
2010-10-18 09:48:32 +00:00
|
|
|
}:
|
2008-06-26 14:38:28 +00:00
|
|
|
|
2014-03-25 22:25:37 +00:00
|
|
|
let
|
|
|
|
runtimeDeps = [ cdrkit cdrdao dvdplusrwtools ];
|
|
|
|
in
|
2010-10-18 09:48:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-03-11 20:43:38 +00:00
|
|
|
name = "k3b-2.0.2";
|
2011-10-12 21:59:36 +00:00
|
|
|
|
2008-06-26 14:38:28 +00:00
|
|
|
src = fetchurl {
|
2010-10-18 09:48:32 +00:00
|
|
|
url = "mirror://sourceforge/k3b/${name}.tar.bz2";
|
2011-03-11 20:43:38 +00:00
|
|
|
sha256 = "1kdpylz3w9bg02jg4mjhqz8bq1yb4xi4fqfl9139qcyjq4lny5xg";
|
2008-06-26 14:38:28 +00:00
|
|
|
};
|
|
|
|
|
2011-10-12 21:59:36 +00:00
|
|
|
buildInputs =
|
|
|
|
[ cmake qt4 perl shared_mime_info libvorbis taglib
|
|
|
|
flac libsamplerate libdvdread lame libsndfile
|
|
|
|
libmad gettext stdenv.gcc.libc
|
|
|
|
kdelibs kdemultimedia automoc4 phonon
|
2014-03-25 22:25:37 +00:00
|
|
|
libkcddb makeWrapper
|
|
|
|
]
|
|
|
|
# Runtime dependencies are *not* propagated so they are easy to override.
|
|
|
|
++ runtimeDeps;
|
2008-06-26 14:38:28 +00:00
|
|
|
|
2011-10-12 21:59:36 +00:00
|
|
|
enableParallelBuilding = true;
|
2014-03-25 22:25:37 +00:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
# Wrap k3b with PATH to required tools, so they can be found without being
|
|
|
|
# installed in a profile. The PATH is suffixed so that profile-installed
|
|
|
|
# tools take preference.
|
|
|
|
let extraPath = stdenv.lib.makeSearchPath "bin" runtimeDeps;
|
|
|
|
in ''
|
|
|
|
wrapProgram "$out/bin/k3b" --suffix PATH : ${extraPath}
|
|
|
|
wrapProgram "$out/bin/k3bsetup" --suffix PATH : ${extraPath}
|
|
|
|
'';
|
2011-10-12 21:59:36 +00:00
|
|
|
|
2010-10-18 09:48:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CD/DVD Burning Application for KDE";
|
|
|
|
license = licenses.gpl2Plus;
|
2013-05-07 08:26:37 +00:00
|
|
|
maintainers = [ maintainers.sander maintainers.urkud maintainers.phreedom ];
|
2011-04-29 18:25:46 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2008-06-26 14:38:28 +00:00
|
|
|
};
|
|
|
|
}
|