nixpkgs-suyu/pkgs/applications/video/avidemux/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, cmake, pkgconfig, libxml2, qt4, gtk, gettext, SDL,
libXv, pixman, libpthreadstubs, libXau, libXdmcp, libxslt, x264,
2014-04-09 11:06:46 +02:00
alsaLib, lame, faad2, libvorbis, yasm, libvpx, xvidcore, libva,
faac ? null, faacSupport ? false }:
assert stdenv ? glibc;
2014-04-09 11:06:46 +02:00
assert faacSupport -> faac != null;
stdenv.mkDerivation {
2015-10-28 00:49:48 +01:00
name = "avidemux-2.6.9";
2014-04-09 11:06:46 +02:00
src = fetchurl {
2015-10-28 00:49:48 +01:00
url = mirror://sourceforge/avidemux/avidemux_2.6.9.tar.gz;
sha256 = "01jhgricd7m9hdhr22yrdjfrnl41zccm2yxw7gfb02mwcswvswy0";
};
2014-04-09 11:06:46 +02:00
buildInputs = [ cmake pkgconfig libxml2 qt4 gtk gettext SDL libXv
2014-04-09 11:06:46 +02:00
pixman libpthreadstubs libXau libXdmcp libxslt x264 alsaLib
lame faad2 libvorbis yasm libvpx xvidcore libva
] ++ stdenv.lib.optional faacSupport faac;
cmakeFlags = "-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include" +
" -DGETTEXT_INCLUDE_DIR=${gettext}/include" +
" -DSDL_INCLUDE_DIR=${SDL}/include/SDL";
NIX_LDFLAGS="-lpthread";
postInstall = ''
cd $NIX_BUILD_TOP/$sourceRoot
mkdir build_plugins
cd build_plugins
cmake $cmakeFlags -DAVIDEMUX_INSTALL_PREFIX=$out \
-DAVIDEMUX_SOURCE_DIR=$NIX_BUILD_TOP/$sourceRoot \
-DAVIDEMUX_CORECONFIG_DIR=$NIX_BUILD_TOP/$sourceRoot/build/config ../plugins
make
make install
'';
2014-04-09 11:06:46 +02:00
meta = {
homepage = http://fixounet.free.fr/avidemux/;
description = "Free video editor designed for simple video editing tasks";
2015-10-28 00:49:48 +01:00
maintainers = with stdenv.lib.maintainers; [ viric jagajaga ];
platforms = with stdenv.lib.platforms; linux;
};
}