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