2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-25 18:33:40 +01:00
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
2020-04-25 19:18:23 +01:00
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols
|
|
|
|
, qtimageformats
|
|
|
|
, qtxmlpatterns
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2020-04-25 18:33:40 +01:00
|
|
|
, guvcview
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, libxml2
|
|
|
|
, gettext
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2020-04-25 18:33:40 +01:00
|
|
|
, libgphoto2
|
|
|
|
, gphoto2
|
|
|
|
, v4l-utils
|
|
|
|
, libv4l
|
|
|
|
, pcre
|
|
|
|
, qwt
|
|
|
|
, extra-cmake-modules
|
|
|
|
}:
|
2017-06-15 00:45:06 +01:00
|
|
|
|
2020-04-07 21:27:31 +01:00
|
|
|
mkDerivation rec {
|
2017-06-15 00:45:06 +01:00
|
|
|
pname = "qstopmotion";
|
2019-02-26 21:57:38 +00:00
|
|
|
version = "2.4.1";
|
2017-06-15 00:45:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/project/${pname}/Version_${builtins.replaceStrings ["."] ["_"] version}/${pname}-${version}-Source.tar.gz";
|
2019-02-26 21:57:38 +00:00
|
|
|
sha256 = "03r6jxyq0bak2vsy2b78nk27m7fm96hnl8cx11l3l17704j4iglh";
|
2017-06-15 00:45:06 +01:00
|
|
|
};
|
|
|
|
|
2020-04-25 19:18:23 +01:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols
|
|
|
|
qtimageformats
|
|
|
|
qtxmlpatterns
|
2020-04-25 18:33:40 +01:00
|
|
|
v4l-utils
|
|
|
|
libv4l
|
|
|
|
pcre
|
2020-06-07 13:39:09 +01:00
|
|
|
ffmpeg_3
|
2020-04-25 18:33:40 +01:00
|
|
|
guvcview
|
|
|
|
qwt
|
|
|
|
];
|
2017-06-15 00:45:06 +01:00
|
|
|
|
2020-04-25 18:33:40 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-04-25 18:33:40 +01:00
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
libgphoto2
|
|
|
|
gphoto2
|
|
|
|
libxml2
|
|
|
|
libv4l
|
|
|
|
];
|
2018-08-12 11:09:36 +01:00
|
|
|
|
|
|
|
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-15 00:45:06 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.qstopmotion.org";
|
2017-06-15 00:45:06 +01: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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2017-06-15 00:45:06 +01:00
|
|
|
maintainers = [ maintainers.leenaars ];
|
2020-04-25 21:04:18 +01:00
|
|
|
broken = stdenv.isAarch64;
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux;
|
2017-06-15 00:45:06 +01:00
|
|
|
};
|
|
|
|
}
|