1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/video/mkvtoolnix/default.nix
R. RyanTM a2f490c576 mkvtoolnix: 25.0.0 -> 26.0.0 (#45812)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
mkvtoolnix
2018-09-04 01:02:02 +02:00

61 lines
1.7 KiB
Nix

{ stdenv, fetchFromGitLab, pkgconfig, autoconf, automake, libiconv
, drake, ruby, docbook_xsl, file, xdg_utils, gettext, expat, boost
, libebml, zlib, libmatroska, libogg, libvorbis, flac, libxslt, cmark
, withGUI ? true
, qtbase ? null
, qtmultimedia ? null
}:
assert withGUI -> qtbase != null && qtmultimedia != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "mkvtoolnix-${version}";
version = "26.0.0";
src = fetchFromGitLab {
owner = "mbunkus";
repo = "mkvtoolnix";
rev = "release-${version}";
sha256 = "0dq0lbr6kzj455mv4z6a851n7ff3xlmsxklijiyp4drn1jf0q1pb";
};
nativeBuildInputs = [
pkgconfig autoconf automake gettext
drake ruby docbook_xsl libxslt
];
buildInputs = [
expat file xdg_utils boost libebml zlib
libmatroska libogg libvorbis flac cmark
] ++ optional stdenv.isDarwin libiconv
++ optionals withGUI [ qtbase qtmultimedia ];
preConfigure = "./autogen.sh; patchShebangs .";
buildPhase = "drake -j $NIX_BUILD_CORES";
installPhase = "drake install -j $NIX_BUILD_CORES";
configureFlags = [
"--enable-magic"
"--enable-optimization"
"--with-boost-libdir=${boost.out}/lib"
"--disable-debug"
"--disable-profiling"
"--disable-precompiled-headers"
"--disable-static-qt"
"--with-gettext"
"--with-docbook-xsl-root=${docbook_xsl}/share/xml/docbook-xsl"
(enableFeature withGUI "qt")
];
meta = with stdenv.lib; {
description = "Cross-platform tools for Matroska";
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
license = licenses.gpl2;
maintainers = with maintainers; [ codyopel fuuzetsu rnhmjoj ];
platforms = platforms.linux
++ optionals (!withGUI) platforms.darwin;
};
}