summary refs log tree commit diff
path: root/pkgs/applications/kde/k3b.nix
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2018-04-04 19:09:57 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2018-04-04 21:37:16 +0300
commitccbf3c89550342fba1ebac9d4d3cdfb161bf207b (patch)
tree5a85ac4e385781515cd6cc9b5f59d84d2b5d31ef /pkgs/applications/kde/k3b.nix
parent56fb68dcef494b7cdb3e09362d67836b8137019c (diff)
downloadnixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar.gz
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar.bz2
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar.lz
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar.xz
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.tar.zst
nixpkgs-ccbf3c89550342fba1ebac9d4d3cdfb161bf207b.zip
k3b: fix build inputs, library path and binary path
Fix #38325
Diffstat (limited to 'pkgs/applications/kde/k3b.nix')
-rw-r--r--pkgs/applications/kde/k3b.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/kde/k3b.nix b/pkgs/applications/kde/k3b.nix
index 89bc171d295..9b16485cfa7 100644
--- a/pkgs/applications/kde/k3b.nix
+++ b/pkgs/applications/kde/k3b.nix
@@ -16,7 +16,7 @@ mkDerivation {
     platforms = platforms.linux;
   };
   nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
-  propagatedBuildInputs = [
+  buildInputs = [
     # qt
     qtwebkit
     # kde
@@ -32,11 +32,17 @@ mkDerivation {
   ];
   propagatedUserEnvPkgs = [ (lib.getBin kinit) ];
   postFixup =
-    let k3bPath = lib.makeBinPath [
-          cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
-          vcdimager
-        ];
+    let
+      binPath = lib.makeBinPath [
+        cdrdao cdrtools dvdplusrwtools libburn normalize sox transcode
+        vcdimager flac
+      ];
+      libraryPath = lib.makeLibraryPath [
+        cdparanoia
+      ];
     in ''
-      wrapProgram "$out/bin/k3b" --prefix PATH : "${k3bPath}"
+      wrapProgram "$out/bin/k3b"     \
+        --prefix PATH : "${binPath}" \
+        --prefix LD_LIBRARY_PATH : ${libraryPath}
     '';
 }