efb8493688
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 - /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0/bin/mkvmerge passed the binary check. - /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0/bin/mkvinfo passed the binary check. - /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0/bin/mkvextract passed the binary check. - /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0/bin/mkvpropedit passed the binary check. - Warning: no invocation of /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0/bin/mkvtoolnix-gui had a zero exit code or showed the expected version - 4 of 5 passed binary check by having a zero exit code. - 0 of 5 passed binary check by having the new version present in output. - found 24.0.0 with grep in /nix/store/bnl49j7lsczpy2c1xpbw2v4s9l5qv4wn-mkvtoolnix-24.0.0 - directory tree listing: https://gist.github.com/91328ec90c8ee5a51b0a1f29e5e11d51 - du listing: https://gist.github.com/e66ad0366b78978eb90f87a6c66e434a
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 = "24.0.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "mbunkus";
|
|
repo = "mkvtoolnix";
|
|
rev = "release-${version}";
|
|
sha256 = "0r6v7n4wq1ivjcfs4br5ywz2f0jbwxrharfcjmycnbjsckz1l7ps";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|