nixpkgs/pkgs/applications/video/qstopmotion/default.nix

43 lines
1.6 KiB
Nix
Raw Normal View History

2018-08-12 10:09:36 +00:00
{ stdenv, lib, fetchurl, qt5, ffmpeg, guvcview, cmake, ninja, libxml2
, gettext, pkgconfig, libgphoto2, gphoto2, v4l_utils, libv4l, pcre
, qwt, extra-cmake-modules }:
2017-06-14 23:45:06 +00:00
stdenv.mkDerivation rec {
pname = "qstopmotion";
2018-08-12 10:09:36 +00:00
version = "2.4.0";
2017-06-14 23:45:06 +00:00
name = "${pname}-${version}";
src = fetchurl {
2018-08-12 10:09:36 +00:00
url = "mirror://sourceforge/project/${pname}/Version_2_4_0/${name}-Source.tar.gz";
sha256 = "0pbyq6nrr9g3crlsng660768167s0fybvcpzbfc0w9kkhs2jwrr2";
2017-06-14 23:45:06 +00:00
};
2018-08-12 10:09:36 +00:00
buildInputs = with qt5; [ v4l_utils libv4l pcre qtbase qtmultimedia ffmpeg guvcview
qwt qtquickcontrols qtimageformats qtxmlpatterns ];
2017-06-14 23:45:06 +00:00
2018-08-12 10:09:36 +00:00
nativeBuildInputs = [ pkgconfig cmake extra-cmake-modules ninja
gettext libgphoto2 gphoto2 libxml2 libv4l ];
patchPhase = ''
substituteInPlace CMakeLists.txt \
--replace "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml" \
"find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml Multimedia"
grep -rl 'qwt' . | xargs sed -i 's@<qwt/qwt_slider.h>@<qwt_slider.h>@g'
'';
2017-06-14 23:45:06 +00:00
meta = with stdenv.lib; {
homepage = http://www.qstopmotion.org;
2017-06-14 23:45:06 +00:00
description = "Create stopmotion animation with a (web)camera";
longDescription = ''
Qstopmotion is a tool to create stopmotion
animation. Its users are able to create stop-motions from pictures
imported from a camera or from the harddrive and export the
animation to different video formats such as mpeg or avi.
'';
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ maintainers.leenaars ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
2017-06-14 23:45:06 +00:00
};
}