mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
42 lines
1.4 KiB
Nix
42 lines
1.4 KiB
Nix
{ stdenv, fetchurl, makeWrapper, cmake, qt4, perl, shared_mime_info, libvorbis, taglib
|
|
, flac, libsamplerate, libdvdread, lame, libsndfile, libmad, gettext
|
|
, transcode, cdrdao, dvdplusrwtools, vcdimager, cdparanoia
|
|
, kdelibs, kdemultimedia, automoc4, phonon, libkcddb ? null
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "k3b-2.0.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/k3b/${name}.tar.bz2";
|
|
sha256 = "1kdpylz3w9bg02jg4mjhqz8bq1yb4xi4fqfl9139qcyjq4lny5xg";
|
|
};
|
|
|
|
buildInputs =
|
|
[ cmake qt4 perl shared_mime_info libvorbis taglib
|
|
flac libsamplerate libdvdread lame libsndfile
|
|
libmad gettext stdenv.cc.libc
|
|
kdelibs kdemultimedia automoc4 phonon
|
|
libkcddb makeWrapper cdparanoia
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# at runtime, k3b needs the executables cdrdao, cdrecord, dvd+rw-format,
|
|
# eMovix, growisofs, mkisofs, normalize, readcd, transcode, vcdxbuild,
|
|
# vcdxminfo, and vcdxrip
|
|
propagatedUserEnvPkgs = [ transcode dvdplusrwtools cdrdao vcdimager ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/k3b \
|
|
--prefix LD_LIBRARY_PATH ":" "${cdparanoia}/lib"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "CD/DVD Burning Application for KDE";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.sander maintainers.urkud maintainers.phreedom ];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|