1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/applications/video/mkvtoolnix/default.nix

50 lines
995 B
Nix
Raw Normal View History

{ 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 {
2015-04-03 10:38:54 +01:00
version = "7.8.0";
2014-08-29 14:06:23 +01:00
name = "mkvtoolnix-${version}";
src = fetchurl {
2013-01-21 20:05:31 +00:00
url = "http://www.bunkus.org/videotools/mkvtoolnix/sources/${name}.tar.xz";
2015-04-03 10:38:54 +01:00
sha256 = "0m7y9115bkfsm95hv2nq0hnd9w73jymsm071jm798w11vdskm8af";
};
2014-08-29 14:06:23 +01:00
buildInputs = [
libmatroska flac libvorbis file boost xdg_utils
expat zlib ruby gettext pkgconfig curl
] ++ stdenv.lib.optional withGUI wxGTK;
2014-12-12 14:42:28 +00:00
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/;
2014-08-29 14:06:23 +01:00
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}