k3b: fix build inputs, library path and binary path

Fix #38325
This commit is contained in:
Jaakko Luttinen
2018-04-04 21:37:16 +03:00
parent 56fb68dcef
commit ccbf3c8955
+12 -6
View File
@@ -16,7 +16,7 @@ mkDerivation {
platforms = platforms.linux; platforms = platforms.linux;
}; };
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ]; nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
propagatedBuildInputs = [ buildInputs = [
# qt # qt
qtwebkit qtwebkit
# kde # kde
@@ -32,11 +32,17 @@ mkDerivation {
]; ];
propagatedUserEnvPkgs = [ (lib.getBin kinit) ]; propagatedUserEnvPkgs = [ (lib.getBin kinit) ];
postFixup = postFixup =
let k3bPath = lib.makeBinPath [ let
cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode binPath = lib.makeBinPath [
vcdimager cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
]; vcdimager flac
];
libraryPath = lib.makeLibraryPath [
cdparanoia
];
in '' in ''
wrapProgram "$out/bin/k3b" --prefix PATH : "${k3bPath}" wrapProgram "$out/bin/k3b" \
--prefix PATH : "${binPath}" \
--prefix LD_LIBRARY_PATH : ${libraryPath}
''; '';
} }