nixpkgs/pkgs/applications/video/mkvtoolnix/default.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

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