summary refs log tree commit diff
path: root/pkgs/applications/graphics/phototonic/default.nix
blob: 6803b969b4b551c6d904e6c1b51f000c2914aa51 (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
{ stdenv, fetchFromGitHub, qtbase, exiv2 }:

stdenv.mkDerivation rec {
  name = "phototonic-${version}";
  version = "1.7";

  src = fetchFromGitHub {
    repo = "phototonic";
    owner = "oferkv";
    rev = "v${version}";
    sha256 = "1agd3bsrpljd019qrjvlbim5l0bhpx53dhpc0gvyn0wmcdzn92gj";
  };

  buildInputs = [ qtbase exiv2 ];

  configurePhase = ''
    sed -i 's;/usr;;' phototonic.pro
    qmake PREFIX=""
  '';

  installFlags = [ "INSTALL_ROOT=$(out)" ];

  meta = with stdenv.lib; {
    description = "An image viewer and organizer";
    homepage = http://oferkv.github.io/phototonic/;
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}