f28848cb4d
Our kdelibs4 package does not come from KDE 4, so per upstream's request I am moving it out of the kde4 set.
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ stdenv, lib, fetchurl, makeWrapper, automoc4, cmake, perl, pkgconfig
|
|
, shared_mime_info, libvorbis, taglib, flac, libsamplerate
|
|
, libdvdread, lame, libsndfile, libmad, gettext , transcode, cdrdao
|
|
, dvdplusrwtools, vcdimager, cdparanoia, kdelibs4, libdvdcss, ffmpeg
|
|
, libkcddb, phonon
|
|
}:
|
|
|
|
let
|
|
# at runtime, k3b needs the executables cdrdao, cdrecord, dvd+rw-format,
|
|
# eMovix, growisofs, mkisofs, normalize, readcd, transcode, vcdxbuild,
|
|
# vcdxminfo, and vcdxrip
|
|
binPath = lib.makeBinPath [ cdrdao dvdplusrwtools transcode vcdimager ];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "k3b-${version}";
|
|
version = "2.0.3a";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.kde.org/stable/k3b/${name}.tar.xz";
|
|
sha256 = "10f07465g9860chfnvrp9w3m686g6j9f446xgnnx7h82d1sb42rd";
|
|
};
|
|
|
|
nativeBuildInputs = [ automoc4 cmake gettext perl pkgconfig ];
|
|
|
|
buildInputs = [
|
|
shared_mime_info libvorbis taglib flac libsamplerate libdvdread
|
|
lame libsndfile libmad stdenv.cc.libc kdelibs4
|
|
phonon libkcddb makeWrapper cdparanoia
|
|
libdvdcss ffmpeg
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
NIX_CFLAGS_LINK = [ "-lcdda_interface" "-lcdda_paranoia" "-ldvdcss" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/k3b \
|
|
--prefix PATH ":" "${binPath}"
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|