2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, dos2unix, which, qt, Carbon }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "qscreenshot";
|
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/qscreenshot/qscreenshot-${version}-src.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ dos2unix which qt ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional stdenv.isDarwin Carbon;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Remove carriage returns that cause /bin/sh to abort
|
|
|
|
preConfigure = ''
|
|
|
|
dos2unix configure
|
|
|
|
sed -i "s|lrelease-qt4|lrelease|" src/src.pro
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple creation and editing of screenshots";
|
|
|
|
homepage = "https://sourceforge.net/projects/qscreenshot/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|