mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ mkDerivation, lib
|
|
, extra-cmake-modules, kdoctools, makeWrapper
|
|
, qtwebkit
|
|
, libkcddb, karchive, kcmutils, kfilemetadata, knewstuff, knotifyconfig, solid, kxmlgui
|
|
, flac, lame, libmad, libmpcdec, libvorbis
|
|
, libsamplerate, libsndfile, taglib
|
|
, cdparanoia, cdrdao, cdrtools, dvdplusrwtools, libburn, libdvdcss, libdvdread, vcdimager
|
|
, ffmpeg, libmusicbrainz2, normalize, sox, transcode, shared_mime_info
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "k3b";
|
|
meta = with lib; {
|
|
license = with licenses; [ gpl2Plus ];
|
|
maintainers = with maintainers; [ sander phreedom ];
|
|
platforms = platforms.linux;
|
|
};
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
|
|
propagatedBuildInputs = [
|
|
# qt
|
|
qtwebkit
|
|
# kde
|
|
libkcddb karchive kcmutils kfilemetadata knewstuff knotifyconfig solid kxmlgui
|
|
# formats
|
|
flac lame libmad libmpcdec libvorbis
|
|
# sound utilities
|
|
libsamplerate libsndfile taglib
|
|
# cd/dvd
|
|
cdparanoia libdvdcss libdvdread
|
|
# others
|
|
ffmpeg libmusicbrainz2 shared_mime_info
|
|
];
|
|
postFixup =
|
|
let k3bPath = lib.makeBinPath [
|
|
cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
|
|
vcdimager
|
|
];
|
|
in ''
|
|
wrapProgram "$out/bin/k3b" --prefix PATH : "${k3bPath}"
|
|
'';
|
|
}
|