mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
Merge branch 'k3b' of git://github.com/ttuegel/nixpkgs
Wrap k3b with PATH to required tools
This commit is contained in:
commit
718466074f
|
@ -1,8 +1,12 @@
|
|||
{ stdenv, fetchurl, cmake, qt4, perl, shared_mime_info, libvorbis, taglib
|
||||
, flac, libsamplerate, libdvdread, lame, libsndfile, libmad, gettext
|
||||
, kdelibs, kdemultimedia, automoc4, phonon, libkcddb ? null
|
||||
, makeWrapper, cdrkit, cdrdao, dvdplusrwtools
|
||||
}:
|
||||
|
||||
let
|
||||
runtimeDeps = [ cdrkit cdrdao dvdplusrwtools ];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "k3b-2.0.2";
|
||||
|
||||
|
@ -16,10 +20,22 @@ stdenv.mkDerivation rec {
|
|||
flac libsamplerate libdvdread lame libsndfile
|
||||
libmad gettext stdenv.gcc.libc
|
||||
kdelibs kdemultimedia automoc4 phonon
|
||||
libkcddb
|
||||
];
|
||||
libkcddb makeWrapper
|
||||
]
|
||||
# Runtime dependencies are *not* propagated so they are easy to override.
|
||||
++ runtimeDeps;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall =
|
||||
# Wrap k3b with PATH to required tools, so they can be found without being
|
||||
# installed in a profile. The PATH is suffixed so that profile-installed
|
||||
# tools take preference.
|
||||
let extraPath = stdenv.lib.makeSearchPath "bin" runtimeDeps;
|
||||
in ''
|
||||
wrapProgram "$out/bin/k3b" --suffix PATH : ${extraPath}
|
||||
wrapProgram "$out/bin/k3bsetup" --suffix PATH : ${extraPath}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "CD/DVD Burning Application for KDE";
|
||||
|
|
Loading…
Reference in a new issue