depot/third_party/nixpkgs/pkgs/kde/gear/k3b/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

60 lines
978 B
Nix

{
lib,
mkKdeDerivation,
pkg-config,
qtwebengine,
shared-mime-info,
libdvdread,
flac,
libmad,
libsndfile,
lame,
libvorbis,
libsamplerate,
cdrdao,
cdrtools,
cdparanoia,
dvdplusrwtools,
libburn,
libdvdcss,
normalize,
sox,
transcode,
vcdimager,
}:
mkKdeDerivation {
pname = "k3b";
extraNativeBuildInputs = [pkg-config shared-mime-info];
# FIXME: Musicbrainz 2.x???, musepack
extraBuildInputs = [
qtwebengine
libdvdread
flac
libmad
libsndfile
lame
libvorbis
libsamplerate
];
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [
cdrdao
cdrtools
dvdplusrwtools
libburn
normalize
sox
transcode
vcdimager
flac
]}"
# FIXME: this should really be done with patchelf --add-rpath, but it breaks the binary somehow
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ cdparanoia libdvdcss ]}"
];
meta.mainProgram = "k3b";
}