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

83 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
, mkDerivation
, fetchurl
, qtbase
, qtmultimedia
, qtquickcontrols
, qtimageformats
, qtxmlpatterns
, ffmpeg_3
, guvcview
, cmake
, ninja
, libxml2
, gettext
, pkg-config
, 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";
2021-03-09 10:21:20 +00:00
version = "2.5.2";
2017-06-15 00:45:06 +01:00
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/Version_${builtins.replaceStrings ["."] ["_"] version}/${pname}-${version}-Source.tar.gz";
2021-03-09 10:21:20 +00:00
sha256 = "sha256-jyBUyadkSuQKXOrr5XZ1jy6of1Qw8S2HPxuOrPc7RnE=";
2017-06-15 00:45:06 +01:00
};
buildInputs = [
qtbase
qtmultimedia
qtquickcontrols
qtimageformats
qtxmlpatterns
v4l-utils
libv4l
pcre
ffmpeg_3
guvcview
qwt
];
2017-06-15 00:45:06 +01:00
nativeBuildInputs = [
pkg-config
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
meta = with lib; {
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 ];
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
};
}