nixpkgs/pkgs/applications/kde/k3b.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

2017-05-17 22:26:11 +03:00
{ mkDerivation, lib
, extra-cmake-modules, kdoctools, makeWrapper, shared-mime-info
, 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
2021-04-30 13:35:37 +03:00
, ffmpeg, libmusicbrainz3, normalize, sox, transcode, kinit
2017-05-11 12:29:58 +03:00
}:
2017-05-16 18:56:41 +03:00
mkDerivation {
2020-12-25 02:05:07 +03:00
pname = "k3b";
2017-05-16 18:56:41 +03:00
meta = with lib; {
homepage = "https://apps.kde.org/k3b/";
description = "Disk burning application";
2017-05-16 18:56:41 +03:00
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 ];
buildInputs = [
2017-05-16 18:56:41 +03:00
# 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
2021-04-30 13:35:37 +03:00
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 =
let
binPath = lib.makeBinPath [
cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
vcdimager flac
];
libraryPath = lib.makeLibraryPath [
cdparanoia
];
2017-05-16 18:56:41 +03:00
in ''
wrapProgram "$out/bin/k3b" \
--prefix PATH : "${binPath}" \
--prefix LD_LIBRARY_PATH : ${libraryPath}
2017-05-16 18:56:41 +03:00
'';
2017-05-11 12:29:58 +03:00
}