2016-04-21 15:16:56 +01:00
|
|
|
{ stdenv, lib, fetchurl, makeWrapper, automoc4, cmake, perl, pkgconfig
|
|
|
|
, shared_mime_info, libvorbis, taglib, flac, libsamplerate
|
2015-09-27 16:11:01 +01:00
|
|
|
, libdvdread, lame, libsndfile, libmad, gettext , transcode, cdrdao
|
2017-02-24 23:16:28 +00:00
|
|
|
, dvdplusrwtools, vcdimager, cdparanoia, kdelibs4, libdvdcss, ffmpeg
|
2017-02-18 19:39:34 +00:00
|
|
|
, libkcddb, phonon
|
2010-10-18 10:48:32 +01:00
|
|
|
}:
|
2008-06-26 15:38:28 +01:00
|
|
|
|
2016-04-21 15:16:56 +01:00
|
|
|
let
|
|
|
|
# at runtime, k3b needs the executables cdrdao, cdrecord, dvd+rw-format,
|
|
|
|
# eMovix, growisofs, mkisofs, normalize, readcd, transcode, vcdxbuild,
|
|
|
|
# vcdxminfo, and vcdxrip
|
2016-04-23 02:14:10 +01:00
|
|
|
binPath = lib.makeBinPath [ cdrdao dvdplusrwtools transcode vcdimager ];
|
2016-04-21 15:16:56 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2016-04-23 02:14:10 +01:00
|
|
|
name = "k3b-${version}";
|
|
|
|
version = "2.0.3a";
|
2015-09-27 16:11:01 +01:00
|
|
|
|
2008-06-26 15:38:28 +01:00
|
|
|
src = fetchurl {
|
2015-01-02 01:35:58 +00:00
|
|
|
url = "http://download.kde.org/stable/k3b/${name}.tar.xz";
|
|
|
|
sha256 = "10f07465g9860chfnvrp9w3m686g6j9f446xgnnx7h82d1sb42rd";
|
2008-06-26 15:38:28 +01:00
|
|
|
};
|
|
|
|
|
2015-09-27 16:11:01 +01:00
|
|
|
nativeBuildInputs = [ automoc4 cmake gettext perl pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
shared_mime_info libvorbis taglib flac libsamplerate libdvdread
|
2017-02-24 23:16:28 +00:00
|
|
|
lame libsndfile libmad stdenv.cc.libc kdelibs4
|
2017-02-18 19:39:34 +00:00
|
|
|
phonon libkcddb makeWrapper cdparanoia
|
2016-04-21 15:16:56 +01:00
|
|
|
libdvdcss ffmpeg
|
2015-09-27 16:11:01 +01:00
|
|
|
];
|
2008-06-26 15:38:28 +01:00
|
|
|
|
2011-10-12 22:59:36 +01:00
|
|
|
enableParallelBuilding = true;
|
2014-06-24 16:03:58 +01:00
|
|
|
|
2016-04-21 15:16:56 +01:00
|
|
|
NIX_CFLAGS_LINK = [ "-lcdda_interface" "-lcdda_paranoia" "-ldvdcss" ];
|
2014-12-14 15:07:37 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/k3b \
|
2016-04-21 15:16:56 +01:00
|
|
|
--prefix PATH ":" "${binPath}"
|
2014-12-14 15:07:37 +00:00
|
|
|
'';
|
2015-09-27 16:11:01 +01:00
|
|
|
|
2010-10-18 10:48:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CD/DVD Burning Application for KDE";
|
|
|
|
license = licenses.gpl2Plus;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ maintainers.sander maintainers.phreedom ];
|
2011-04-29 19:25:46 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2008-06-26 15:38:28 +01:00
|
|
|
};
|
|
|
|
}
|