about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/linuxstopmotion/default.nix
blob: bdf361cec9fc15f167b67515af5a87e7c7b55865 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ mkDerivation, lib, fetchgit, pkg-config, qmake, qtbase, qttools, qtmultimedia, libvorbis, libtar, libxml2 }:

mkDerivation rec {
  version = "0.8.5";
  pname = "linuxstopmotion";

  src = fetchgit {
    url = "https://git.code.sf.net/p/linuxstopmotion/code";
    rev = version;
    sha256 = "1612lkwsfzc59wvdj2zbj5cwsyw66bwn31jrzjrxvygxdh4ab069";
  };

  nativeBuildInputs = [ qmake pkg-config ];
  buildInputs = [ qtbase qttools qtmultimedia libvorbis libtar libxml2 ];

  postPatch = ''
    substituteInPlace stopmotion.pro --replace '$$[QT_INSTALL_BINS]' '${lib.getDev qttools}/bin'
  '';

  meta = with lib; {
    description = "Create stop-motion animation movies";
    homepage = "http://linuxstopmotion.org/";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.bjornfor ];
    mainProgram = "stopmotion";
  };
}