{ lib , stdenv , fetchFromGitHub , cmake , pkg-config , wrapGAppsHook , at-spi2-core , cairo , dbus , freetype , fontconfig , glew , gtkmm3 , json_c , libdatrie , libepoxy , libGLU , libpng , libselinux , libsepol , libthai , libxkbcommon , pangomm , pcre , util-linuxMinimal # provides libmount , xorg , zlib }: stdenv.mkDerivation rec { pname = "solvespace"; version = "3.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; hash = "sha256-aaYqUZ0c1lCL91fmxtKFAAE2uUWrjnDB3WdcqdutXhE="; fetchSubmodules = true; }; nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ]; buildInputs = [ at-spi2-core cairo dbus freetype fontconfig glew gtkmm3 json_c libdatrie libepoxy libGLU libpng libselinux libsepol libthai libxkbcommon pangomm pcre util-linuxMinimal xorg.libpthreadstubs xorg.libXdmcp xorg.libXtst zlib ]; postPatch = '' patch CMakeLists.txt <