mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
307cdeda29
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/mkvtoolnix/versions. These checks were done: - built on NixOS - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvmerge -h` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvmerge --help` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvmerge -V` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvmerge --version` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvinfo -h` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvinfo --help` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvinfo -V` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvinfo --version` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvextract -h` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvextract --help` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvextract -V` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvextract --version` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvpropedit -h` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvpropedit --help` got 0 exit code - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvpropedit -V` and found version 22.0.0 - ran `/nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0/bin/mkvpropedit --version` and found version 22.0.0 - found 22.0.0 with grep in /nix/store/qzarbwgjblj2vw9wc017gich3a5rv9f0-mkvtoolnix-22.0.0 - directory tree listing: https://gist.github.com/7834479431ce4c1f041e9b5d9da3129d
61 lines
1.7 KiB
Nix
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 = "22.0.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "mbunkus";
|
|
repo = "mkvtoolnix";
|
|
rev = "release-${version}";
|
|
sha256 = "07nggqkpl6dkfcqli8y9dn0jbznldz03nqj2l3fgj3vhqa0phlab";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|