@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, qt5, kde5, lxqt, xorg }:
2+
3+stdenv.mkDerivation rec {
4+ name = "screengrab-unstable-2016-09-12";
5+
6+ srcs = fetchFromGitHub {
7+ owner = "QtDesktop";
8+ repo = "screengrab";
9+ rev = "3dbacb9d6f52825689846c798a6c4c95e3815bf6";
10+ sha256 = "0rflb1q5b1mik8sm1wm63hwpyaah8liizxq1f5q33zapl1qafzi5";
11+ };
12+
13+ nativeBuildInputs = [ cmake pkgconfig ];
14+
15+ buildInputs = [
16+ qt5.qtbase
17+ qt5.qttools
18+ qt5.qtx11extras
19+ qt5.qtsvg
20+ kde5.kwindowsystem
21+ lxqt.libqtxdg
22+ xorg.libpthreadstubs
23+ xorg.libXdmcp
24+ ];
25+
26+ cmakeFlags = [ "-DSG_USE_SYSTEM_QXT=ON" "-DCMAKE_INSTALL_LIBDIR=lib" ];
27+
28+ meta = with stdenv.lib; {
29+ description = "Crossplatform tool for fast making screenshots";
30+ homepage = https://github.com/lxde/screengrab;
31+ license = licenses.gpl2;
32+ platforms = with platforms; unix;
33+ maintainers = with maintainers; [ romildo ];
34+ };
35+}