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

61 lines
1.7 KiB
Nix
Raw Normal View History

2017-12-22 02:58:10 +00:00
{ stdenv, fetchFromGitLab, pkgconfig, autoconf, automake, libiconv
2018-02-28 22:27:43 +00:00
, drake, ruby, docbook_xsl, file, xdg_utils, gettext, expat, boost
2018-01-27 12:04:15 +00:00
, libebml, zlib, libmatroska, libogg, libvorbis, flac, libxslt, cmark
2016-03-07 18:24:24 +00:00
, withGUI ? true
2018-02-28 22:27:43 +00:00
, qtbase ? null
, qtmultimedia ? null
}:
2018-02-28 22:27:43 +00:00
assert withGUI -> qtbase != null && qtmultimedia != null;
2016-03-07 18:24:24 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
2014-08-29 13:06:23 +00:00
name = "mkvtoolnix-${version}";
version = "28.2.0";
2017-12-22 02:58:10 +00:00
src = fetchFromGitLab {
2018-02-28 22:27:43 +00:00
owner = "mbunkus";
repo = "mkvtoolnix";
rev = "release-${version}";
sha256 = "162qj5z9wzm63im6jnd0n95ggzdk6fzq5bxgrr0l3y82ahfb7qwa";
};
2018-02-28 22:27:43 +00:00
nativeBuildInputs = [
pkgconfig autoconf automake gettext
drake ruby docbook_xsl libxslt
];
2015-05-11 10:20:12 +00:00
2014-08-29 13:06:23 +00:00
buildInputs = [
2018-02-28 22:27:43 +00:00
expat file xdg_utils boost libebml zlib
libmatroska libogg libvorbis flac cmark
] ++ optional stdenv.isDarwin libiconv
++ optionals withGUI [ qtbase qtmultimedia ];
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 10:20:12 +00: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 ];
2017-03-13 21:20:26 +00:00
platforms = platforms.linux
++ optionals (!withGUI) platforms.darwin;
};
}