3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/mkvtoolnix/default.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

2016-07-09 16:14:01 +01:00
{ stdenv, fetchFromGitHub, pkgconfig, autoconf, automake
, drake, ruby, docbook_xsl, file, xdg_utils, gettext, expat, qt5, boost
, libebml, zlib, libmatroska, libogg, libvorbis, flac, libxslt
2016-03-07 18:24:24 +00:00
, withGUI ? true
}:
2015-05-11 11:20:12 +01:00
assert withGUI -> qt5 != null;
2016-03-07 18:24:24 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
2014-08-29 14:06:23 +01:00
name = "mkvtoolnix-${version}";
version = "9.9.0";
2016-07-09 16:14:01 +01:00
src = fetchFromGitHub {
owner = "mbunkus";
repo = "mkvtoolnix";
rev = "release-${version}";
sha256 = "1jiz23s52l3gpl84yx4yw3w445jqzcimvnvibvrv3a21k29hyik1";
};
nativeBuildInputs = [ pkgconfig autoconf automake gettext drake ruby docbook_xsl libxslt ];
2015-05-11 11:20:12 +01:00
2014-08-29 14:06:23 +01:00
buildInputs = [
expat file xdg_utils boost libebml zlib libmatroska libogg
libvorbis flac
] ++ optional withGUI qt5.qtbase;
2016-03-12 23:43:29 +00:00
preConfigure = "./autogen.sh; patchShebangs .";
buildPhase = "drake -j $NIX_BUILD_CORES";
installPhase = "drake install -j $NIX_BUILD_CORES";
2016-03-07 18:24:24 +00:00
configureFlags = [
"--enable-magic"
"--enable-optimization"
"--with-boost-libdir=${boost.out}/lib"
2016-03-07 18:24:24 +00:00
"--disable-debug"
"--disable-profiling"
"--disable-precompiled-headers"
"--disable-static-qt"
"--with-gettext"
"--with-docbook-xsl-root=${docbook_xsl}/share/xml/docbook-xsl"
2016-03-07 18:24:24 +00:00
(enableFeature withGUI "qt")
];
2015-05-11 11:20:12 +01:00
meta = with stdenv.lib; {
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;
};
}