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