2016-03-07 18:24:24 +00:00
|
|
|
{ stdenv, fetchgit, pkgconfig, autoconf, automake
|
|
|
|
, ruby, file, xdg_utils, gettext, expat, qt5, boost
|
|
|
|
, libebml, zlib, libmatroska, libogg, libvorbis, flac
|
|
|
|
, withGUI ? true
|
2011-02-12 20:18:53 +00:00
|
|
|
}:
|
|
|
|
|
2015-05-11 11:20:12 +01:00
|
|
|
assert withGUI -> qt5 != null;
|
2016-03-07 18:24:24 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2015-01-10 13:46:05 +00:00
|
|
|
|
2011-02-12 20:18:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 14:06:23 +01:00
|
|
|
name = "mkvtoolnix-${version}";
|
2016-03-07 18:24:24 +00:00
|
|
|
version = "8.9.0";
|
2011-02-12 20:18:53 +00:00
|
|
|
|
2016-03-07 18:24:24 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/mbunkus/mkvtoolnix.git";
|
|
|
|
rev = "54e6b52b3dde07f89da4542997ef059e18802128";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1gipydk1xisqy110rr38dgjzpxl8zxbm12kf7b2f4xh4iw17j0k2";
|
2011-02-12 20:18:53 +00:00
|
|
|
};
|
|
|
|
|
2016-03-07 18:24:24 +00:00
|
|
|
nativeBuildInputs = [ gettext ruby ];
|
2015-05-11 11:20:12 +01:00
|
|
|
|
2014-08-29 14:06:23 +01:00
|
|
|
buildInputs = [
|
2016-03-07 18:24:24 +00:00
|
|
|
pkgconfig autoconf automake expat
|
|
|
|
file xdg_utils boost libebml zlib
|
|
|
|
libmatroska libogg libvorbis flac
|
|
|
|
(optional withGUI qt5.qtbase)
|
|
|
|
];
|
2011-02-12 20:18:53 +00:00
|
|
|
|
2016-03-12 23:43:29 +00:00
|
|
|
preConfigure = "./autogen.sh; patchShebangs .";
|
2016-03-07 18:24:24 +00:00
|
|
|
buildPhase = "./drake -j $NIX_BUILD_CORES";
|
|
|
|
installPhase = "./drake install -j $NIX_BUILD_CORES";
|
2011-02-12 20:18:53 +00:00
|
|
|
|
2016-03-07 18:24:24 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-magic"
|
|
|
|
"--enable-optimization"
|
2016-04-27 22:41:28 +01:00
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2016-03-07 18:24:24 +00:00
|
|
|
"--disable-debug"
|
|
|
|
"--disable-profiling"
|
|
|
|
"--disable-precompiled-headers"
|
|
|
|
"--disable-static-qt"
|
|
|
|
"--without-curl"
|
|
|
|
"--with-gettext"
|
|
|
|
(enableFeature withGUI "qt")
|
|
|
|
];
|
2011-02-12 20:18:53 +00:00
|
|
|
|
2015-05-11 11:20:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-02-12 20:22:55 +00:00
|
|
|
description = "Cross-platform tools for Matroska";
|
2016-03-07 18:24:24 +00:00
|
|
|
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ codyopel fuuzetsu rnhmjoj ];
|
|
|
|
platforms = platforms.linux;
|
2011-02-12 20:18:53 +00:00
|
|
|
};
|
|
|
|
}
|