summary refs log tree commit diff
path: root/pkgs/applications/video/linuxstopmotion/default.nix
blob: 293bdd835b5d0597bcdb0289bf2c02b3dc46a564 (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
29
30
31
32
{ stdenv, fetchgit, pkgconfig, qt4, SDL, SDL_image, libvorbis, libtar, libxml2
, gamin, qmake4Hook
}:

stdenv.mkDerivation rec {
  version = "0.8";
  name = "linuxstopmotion-${version}";
  
  src = fetchgit {
    url = "git://git.code.sf.net/p/linuxstopmotion/code";
    rev = "refs/tags/${version}";
    sha256 = "1xkkrhllgy2d7k0vrdj794ya7y3g3n7xh8c2qgnb26yrarz79dqj";
  };

  buildInputs = [ pkgconfig qt4 SDL SDL_image libvorbis libtar libxml2 gamin qmake4Hook ];

  patches = [ ./linuxstopmotion-fix-wrong-isProcess-logic.patch ];

  # Installation breaks without this
  preInstall = ''
    mkdir -p "$out/share/stopmotion/translations/"
    cp -v build/*.qm "$out/share/stopmotion/translations/"
  '';

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