nixpkgs/pkgs/applications/video/mkvtoolnix/default.nix
2015-03-11 16:46:30 +00:00

50 lines
995 B
Nix

{ stdenv, fetchurl
, libmatroska
, flac
, libvorbis
, file
, boost
, xdg_utils
, expat
, withGUI ? true
, wxGTK
, zlib
, ruby
, gettext
, pkgconfig
, curl
}:
assert withGUI -> wxGTK != null;
stdenv.mkDerivation rec {
version = "7.7.0";
name = "mkvtoolnix-${version}";
src = fetchurl {
url = "http://www.bunkus.org/videotools/mkvtoolnix/sources/${name}.tar.xz";
sha256 = "0a602d5jvq0ap4pa64p80al8nmyp37a380bi5i4sqdpvp298h78r";
};
buildInputs = [
libmatroska flac libvorbis file boost xdg_utils
expat zlib ruby gettext pkgconfig curl
] ++ stdenv.lib.optional withGUI wxGTK;
configureFlags = "--with-boost-libdir=${boost.lib}/lib";
buildPhase = ''
ruby ./drake
'';
installPhase = ''
ruby ./drake install
'';
meta = {
description = "Cross-platform tools for Matroska";
homepage = http://www.bunkus.org/videotools/mkvtoolnix/;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}