2011-02-12 20:18:53 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, libmatroska
|
|
|
|
, flac
|
|
|
|
, libvorbis
|
|
|
|
, file
|
|
|
|
, boost
|
|
|
|
, xdg_utils
|
|
|
|
, expat
|
2015-01-10 13:46:05 +00:00
|
|
|
, withGUI ? true
|
2011-02-12 20:18:53 +00:00
|
|
|
, wxGTK
|
|
|
|
, zlib
|
|
|
|
, ruby
|
|
|
|
, gettext
|
2012-06-11 18:40:55 +01:00
|
|
|
, pkgconfig
|
|
|
|
, curl
|
2011-02-12 20:18:53 +00:00
|
|
|
}:
|
|
|
|
|
2015-01-10 13:46:05 +00:00
|
|
|
assert withGUI -> wxGTK != null;
|
|
|
|
|
2011-02-12 20:18:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-10 11:01:58 +00:00
|
|
|
version = "7.5.0";
|
2014-08-29 14:06:23 +01:00
|
|
|
name = "mkvtoolnix-${version}";
|
2011-02-12 20:18:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-21 20:05:31 +00:00
|
|
|
url = "http://www.bunkus.org/videotools/mkvtoolnix/sources/${name}.tar.xz";
|
2015-01-10 11:01:58 +00:00
|
|
|
sha256 = "0ksv79zcpp34jzs77r02x119c0h2wyvkgckd0bbwjix0qyczgfhp";
|
2011-02-12 20:18:53 +00:00
|
|
|
};
|
|
|
|
|
2014-08-29 14:06:23 +01:00
|
|
|
buildInputs = [
|
|
|
|
libmatroska flac libvorbis file boost xdg_utils
|
2015-01-10 13:46:05 +00:00
|
|
|
expat zlib ruby gettext pkgconfig curl
|
|
|
|
] ++ stdenv.lib.optional withGUI wxGTK;
|
2011-02-12 20:18:53 +00:00
|
|
|
|
2014-12-12 14:42:28 +00:00
|
|
|
configureFlags = "--with-boost-libdir=${boost.lib}/lib";
|
2011-02-12 20:18:53 +00:00
|
|
|
buildPhase = ''
|
|
|
|
ruby ./drake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ruby ./drake install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2011-02-12 20:22:55 +00:00
|
|
|
description = "Cross-platform tools for Matroska";
|
|
|
|
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
|
2014-08-29 14:06:23 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2011-02-12 20:18:53 +00:00
|
|
|
};
|
|
|
|
}
|