summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Cowley <acowley@gmail.com>2019-05-28 12:09:20 -0400
committerAnthony Cowley <acowley@gmail.com>2019-05-28 12:46:47 -0400
commitfbc46ae2caf38cb5a94e6040b63822961011997c (patch)
tree70e9f0bf17908dd0183a88384215f67997aeb04e
parentc7bcd4277cc9a656207b636dbc62fef21dc64c78 (diff)
downloadnixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar.gz
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar.bz2
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar.lz
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar.xz
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.tar.zst
nixpkgs-fbc46ae2caf38cb5a94e6040b63822961011997c.zip
Package the qView image viewer
A fast, unobtrusive Qt-based image viewer.
-rw-r--r--pkgs/applications/graphics/qview/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/qview/default.nix b/pkgs/applications/graphics/qview/default.nix
new file mode 100644
index 00000000000..7e8ec9a3898
--- /dev/null
+++ b/pkgs/applications/graphics/qview/default.nix
@@ -0,0 +1,22 @@
+{stdenv, fetchFromGitHub, qmake}:
+stdenv.mkDerivation rec {
+  name = "qview-${version}";
+  version = "2.0";
+  src = fetchFromGitHub {
+    owner = "jurplel";
+    repo = "qView";
+    rev = "${version}";
+    sha256 = "1s29hz44rb5dwzq8d4i4bfg77dr0v3ywpvidpa6xzg7hnnv3mhi5";
+  };
+  nativeBuildInputs = [ qmake ];
+  patchPhase = ''
+    sed "s|/usr/|$out/|g" -i qView.pro
+  '';
+  meta = with stdenv.lib; {
+    description = "Practical and minimal image viewer";
+    homepage = https://interversehq.com/qview/;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ acowley ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6dcede063b8..c407c454bd5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5456,6 +5456,8 @@ in
 
   quota = if stdenv.isLinux then linuxquota else unixtools.quota;
 
+  qview = libsForQt5.callPackage ../applications/graphics/qview {};
+
   wiggle = callPackage ../development/tools/wiggle { };
 
   radamsa = callPackage ../tools/security/radamsa { };