package.nix (865B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 raylib, 7 sfml, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "tgui"; 12 version = "1.13.0"; 13 14 src = fetchFromGitHub { 15 owner = "texus"; 16 repo = "TGUI"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-6Udt33WSAUYWiQyoCsvMckpGH9Oj5NEtjAGNLuLRvvw="; 19 }; 20 21 postPatch = '' 22 substituteInPlace cmake/pkgconfig/tgui.pc.in \ 23 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ 24 ''; 25 26 nativeBuildInputs = [ cmake ]; 27 28 cmakeFlags = [ 29 (lib.cmakeBool "TGUI_HAS_BACKEND_RAYLIB" true) 30 (lib.cmakeFeature "TGUI_BACKEND" "Custom") 31 ]; 32 33 buildInputs = [ 34 raylib 35 ]; 36 37 meta = { 38 description = "Cross-platform modern c++ GUI"; 39 homepage = "https://github.com/texus/TGUI"; 40 license = lib.licenses.zlib; 41 maintainers = [ lib.maintainers.sikmir ]; 42 }; 43 })
