@@ -0,0 +1,26 @@
1+{ stdenv, fetchurl, dos2unix, which, qt }:
2+
3+stdenv.mkDerivation rec {
4+ name = "qscreenshot-1.0";
5+
6+ src = fetchurl {
7+ url = "mirror://sourceforge/qscreenshot/${name}-src.tar.gz";
8+ sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx";
9+ };
10+
11+ buildInputs = [ dos2unix which qt ];
12+
13+ # Remove carriage returns that cause /bin/sh to abort
14+ preConfigure = ''
15+ dos2unix configure
16+ sed -i "s|lrelease-qt4|lrelease|" src/src.pro
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "Simple creation and editing of screenshots";
21+ homepage = https://sourceforge.net/projects/qscreenshot/;
22+ license = licenses.gpl2;
23+ platforms = platforms.all;
24+ maintainers = [ maintainers.bjornfor ];
25+ };
26+}