about summary refs log tree commit diff
path: root/pkgs/applications/graphics/qscreenshot
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2016-05-25 18:27:13 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-05-25 19:00:50 +0200
commit41fa133548517e0351c924ff55dc818e38f4a0f4 (patch)
treec89f8a28f68ee4931723520721efa17f0e411e9e /pkgs/applications/graphics/qscreenshot
parent331fa2feff8cbdca5cc831d1fae36d9505618124 (diff)
downloadnixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar.gz
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar.bz2
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar.lz
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar.xz
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.tar.zst
nixlib-41fa133548517e0351c924ff55dc818e38f4a0f4.zip
qscreenshot: init at 1.0
Create and edit screenshots.
Diffstat (limited to 'pkgs/applications/graphics/qscreenshot')
-rw-r--r--pkgs/applications/graphics/qscreenshot/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/qscreenshot/default.nix b/pkgs/applications/graphics/qscreenshot/default.nix
new file mode 100644
index 000000000000..c4f4f6472ed6
--- /dev/null
+++ b/pkgs/applications/graphics/qscreenshot/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, dos2unix, which, qt }:
+
+stdenv.mkDerivation rec {
+  name = "qscreenshot-1.0";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/qscreenshot/${name}-src.tar.gz";
+    sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx";
+  };
+
+  buildInputs = [ dos2unix which qt ];
+
+  # Remove carriage returns that cause /bin/sh to abort
+  preConfigure = ''
+    dos2unix configure
+    sed -i "s|lrelease-qt4|lrelease|" src/src.pro
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Simple creation and editing of screenshots";
+    homepage = https://sourceforge.net/projects/qscreenshot/;
+    license = licenses.gpl2;
+    platforms = platforms.all;
+    maintainers = [ maintainers.bjornfor ];
+  };
+}