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

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

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

  buildInputs = [ qtbase exiv2 ];
  nativeBuildInputs = [ qmake ];

  preConfigure = ''
    sed -i 's;/usr;$$PREFIX/;g' phototonic.pro
  '';

  meta = with stdenv.lib; {
    description = "An image viewer and organizer";
    homepage = https://sourceforge.net/projects/phototonic/;
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}