nixpkgs/pkgs/applications/kde/k3b.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

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