2017-05-17 19:26:11 +00:00
|
|
|
{ mkDerivation, lib
|
2018-02-25 02:23:58 +00:00
|
|
|
, extra-cmake-modules, kdoctools, makeWrapper, shared-mime-info
|
2017-06-25 17:11:11 +00:00
|
|
|
, libkcddb, karchive, kcmutils, kfilemetadata, knewstuff, knotifyconfig, solid, kxmlgui
|
2017-05-11 09:29:58 +00:00
|
|
|
, flac, lame, libmad, libmpcdec, libvorbis
|
|
|
|
, libsamplerate, libsndfile, taglib
|
|
|
|
, cdparanoia, cdrdao, cdrtools, dvdplusrwtools, libburn, libdvdcss, libdvdread, vcdimager
|
2021-04-30 10:35:37 +00:00
|
|
|
, ffmpeg, libmusicbrainz3, normalize, sox, transcode, kinit
|
2017-05-11 09:29:58 +00:00
|
|
|
}:
|
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
mkDerivation {
|
2020-12-24 23:05:07 +00:00
|
|
|
pname = "k3b";
|
2017-05-16 15:56:41 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 09:48:23 +00:00
|
|
|
homepage = "https://apps.kde.org/k3b/";
|
|
|
|
description = "Disk burning application";
|
2017-05-16 15:56:41 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
2021-12-18 09:25:46 +00:00
|
|
|
maintainers = with maintainers; [ sander ];
|
2017-05-16 15:56:41 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2017-08-20 10:03:41 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
|
2018-04-04 16:09:57 +00:00
|
|
|
buildInputs = [
|
2017-05-16 15:56:41 +00:00
|
|
|
# kde
|
2017-06-25 17:11:11 +00:00
|
|
|
libkcddb karchive kcmutils kfilemetadata knewstuff knotifyconfig solid kxmlgui
|
2017-05-16 15:56:41 +00:00
|
|
|
# formats
|
|
|
|
flac lame libmad libmpcdec libvorbis
|
|
|
|
# sound utilities
|
|
|
|
libsamplerate libsndfile taglib
|
|
|
|
# cd/dvd
|
|
|
|
cdparanoia libdvdcss libdvdread
|
|
|
|
# others
|
2021-04-30 10:35:37 +00:00
|
|
|
ffmpeg libmusicbrainz3 shared-mime-info
|
2017-05-16 15:56:41 +00:00
|
|
|
];
|
2017-08-04 08:58:44 +00:00
|
|
|
propagatedUserEnvPkgs = [ (lib.getBin kinit) ];
|
2017-05-17 19:26:11 +00:00
|
|
|
postFixup =
|
2018-04-04 16:09:57 +00:00
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
|
|
|
|
vcdimager flac
|
|
|
|
];
|
|
|
|
libraryPath = lib.makeLibraryPath [
|
|
|
|
cdparanoia
|
|
|
|
];
|
2017-05-16 15:56:41 +00:00
|
|
|
in ''
|
2018-04-04 16:09:57 +00:00
|
|
|
wrapProgram "$out/bin/k3b" \
|
|
|
|
--prefix PATH : "${binPath}" \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${libraryPath}
|
2017-05-16 15:56:41 +00:00
|
|
|
'';
|
2017-05-11 09:29:58 +00:00
|
|
|
}
|