2017-05-17 21:26:11 +02:00
|
|
|
{ mkDerivation, lib
|
|
|
|
, extra-cmake-modules, kdoctools, makeWrapper
|
2017-05-11 11:29:58 +02:00
|
|
|
, qtwebkit
|
2017-06-25 19:11:11 +02:00
|
|
|
, libkcddb, karchive, kcmutils, kfilemetadata, knewstuff, knotifyconfig, solid, kxmlgui
|
2017-05-11 11:29:58 +02:00
|
|
|
, flac, lame, libmad, libmpcdec, libvorbis
|
|
|
|
, libsamplerate, libsndfile, taglib
|
|
|
|
, cdparanoia, cdrdao, cdrtools, dvdplusrwtools, libburn, libdvdcss, libdvdread, vcdimager
|
2017-08-04 10:58:44 +02:00
|
|
|
, ffmpeg, libmusicbrainz2, normalize, sox, transcode, shared_mime_info, kinit
|
2017-05-11 11:29:58 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation {
|
|
|
|
name = "k3b";
|
|
|
|
meta = with lib; {
|
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ sander phreedom ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
|
2017-05-16 17:56:41 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# qt
|
|
|
|
qtwebkit
|
|
|
|
# kde
|
2017-06-25 19:11:11 +02:00
|
|
|
libkcddb karchive kcmutils kfilemetadata knewstuff knotifyconfig solid kxmlgui
|
2017-05-16 17:56:41 +02:00
|
|
|
# formats
|
|
|
|
flac lame libmad libmpcdec libvorbis
|
|
|
|
# sound utilities
|
|
|
|
libsamplerate libsndfile taglib
|
|
|
|
# cd/dvd
|
|
|
|
cdparanoia libdvdcss libdvdread
|
|
|
|
# others
|
2017-06-25 19:11:11 +02:00
|
|
|
ffmpeg libmusicbrainz2 shared_mime_info
|
2017-05-16 17:56:41 +02:00
|
|
|
];
|
2017-08-04 10:58:44 +02:00
|
|
|
propagatedUserEnvPkgs = [ (lib.getBin kinit) ];
|
2017-05-17 21:26:11 +02:00
|
|
|
postFixup =
|
2017-05-16 17:56:41 +02:00
|
|
|
let k3bPath = lib.makeBinPath [
|
|
|
|
cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
|
|
|
|
vcdimager
|
|
|
|
];
|
|
|
|
in ''
|
2017-05-17 21:26:11 +02:00
|
|
|
wrapProgram "$out/bin/k3b" --prefix PATH : "${k3bPath}"
|
2017-05-16 17:56:41 +02:00
|
|
|
'';
|
2017-05-11 11:29:58 +02:00
|
|
|
}
|