2017-02-25 15:44:29 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, libqtxdg, xorg }:
|
2016-10-14 23:48:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-19 14:45:02 +00:00
|
|
|
name = "screengrab-unstable-2017-02-18";
|
2016-10-14 23:48:32 +01:00
|
|
|
|
|
|
|
srcs = fetchFromGitHub {
|
|
|
|
owner = "QtDesktop";
|
|
|
|
repo = "screengrab";
|
2017-02-19 14:45:02 +00:00
|
|
|
rev = "6fc03c70fe132b89f35d4cef2f62c9d804de3b64";
|
|
|
|
sha256 = "1h3rlpmaqxzysaibcw7s5msbrwaxkg6sz7a8xv6cqzjvggv09my0";
|
2016-10-14 23:48:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-25 15:44:29 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
qtsvg
|
|
|
|
kwindowsystem
|
|
|
|
libqtxdg
|
2016-10-14 23:48:32 +01:00
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.libXdmcp
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSG_USE_SYSTEM_QXT=ON" "-DCMAKE_INSTALL_LIBDIR=lib" ];
|
|
|
|
|
2017-02-18 11:28:07 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
|
|
|
|
|
2016-10-14 23:48:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Crossplatform tool for fast making screenshots";
|
|
|
|
homepage = https://github.com/lxde/screengrab;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|