2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, dos2unix, which, qt, Carbon }:
|
2016-05-25 17:27:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qscreenshot-1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/qscreenshot/${name}-src.tar.gz";
|
|
|
|
sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx";
|
|
|
|
};
|
|
|
|
|
2018-03-24 13:26:30 +00:00
|
|
|
buildInputs = [ dos2unix which qt ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin Carbon;
|
2016-05-25 17:27:13 +01:00
|
|
|
|
|
|
|
# Remove carriage returns that cause /bin/sh to abort
|
|
|
|
preConfigure = ''
|
|
|
|
dos2unix configure
|
|
|
|
sed -i "s|lrelease-qt4|lrelease|" src/src.pro
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-25 17:27:13 +01:00
|
|
|
description = "Simple creation and editing of screenshots";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/qscreenshot/";
|
2016-05-25 17:27:13 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|