{ stdenv, fetchFromGitHub, cmake, pkgconfig, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, libqtxdg, xorg, autoPatchelfHook }: stdenv.mkDerivation rec { pname = "screengrab"; version = "1.100"; src = fetchFromGitHub { owner = "lxqt"; repo = pname; rev = version; sha256 = "1iqrmf581x9ab6zzjxm2509gg6fkn7hwril4v0aki7n7dgxw1c4g"; }; nativeBuildInputs = [ cmake pkgconfig autoPatchelfHook # fix libuploader.so and libextedit.so not found ]; buildInputs = [ qtbase qttools qtx11extras qtsvg kwindowsystem libqtxdg xorg.libpthreadstubs xorg.libXdmcp ]; meta = with stdenv.lib; { description = "Crossplatform tool for fast making screenshots"; homepage = https://github.com/lxqt/screengrab; license = licenses.gpl2; platforms = with platforms; unix; maintainers = with maintainers; [ romildo ]; }; }