about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/phototonic/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/phototonic/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/graphics/phototonic/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/phototonic/default.nix b/nixpkgs/pkgs/applications/graphics/phototonic/default.nix
new file mode 100644
index 000000000000..1c6c1b433547
--- /dev/null
+++ b/nixpkgs/pkgs/applications/graphics/phototonic/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchFromGitHub, qtbase, qmake, exiv2 }:
+
+stdenv.mkDerivation rec {
+  pname = "phototonic";
+  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 ];
+  };
+}