surreal-engine: init at 0-unstable-2024-11-08 (#337069)

authored by Hugh O'Brien and committed by GitHub 8213a8a5 6d4ddefd

+75
+75
pkgs/by-name/su/surreal-engine/package.nix
··· 1 + { 2 + alsa-lib, 3 + cmake, 4 + dbus, 5 + fetchFromGitHub, 6 + lib, 7 + libffi, 8 + makeWrapper, 9 + openal, 10 + pkg-config, 11 + SDL2, 12 + stdenv, 13 + vulkan-loader, 14 + wayland, 15 + waylandpp, 16 + libxkbcommon, 17 + }: 18 + 19 + stdenv.mkDerivation (finalAttrs: { 20 + pname = "surreal-engine"; 21 + version = "0-unstable-2024-11-08"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "dpjudas"; 25 + repo = "SurrealEngine"; 26 + rev = "087fa2af7fd0ce51702dd4024b4ae15a88222678"; 27 + hash = "sha256-AEIBhTkkRq4+L4ycx82GE29dM7zNgE0oHOkwEH9ezUg="; 28 + }; 29 + 30 + nativeBuildInputs = [ 31 + cmake 32 + makeWrapper 33 + pkg-config 34 + ]; 35 + 36 + buildInputs = [ 37 + alsa-lib 38 + dbus 39 + libffi 40 + openal 41 + SDL2 42 + vulkan-loader 43 + wayland 44 + waylandpp 45 + libxkbcommon 46 + ]; 47 + 48 + postPatch = '' 49 + substituteInPlace SurrealEngine/UI/WidgetResourceData.cpp --replace-fail /usr/share $out/share 50 + ''; 51 + 52 + installPhase = '' 53 + runHook preInstall 54 + 55 + install -Dt $out/bin Surreal{Debugger,Editor,Engine} 56 + install -Dt $out/share/surrealengine SurrealEngine.pk3 57 + 58 + runHook postInstall 59 + ''; 60 + 61 + postFixup = '' 62 + for bin in $out/bin/Surreal{Debugger,Editor,Engine}; do 63 + wrapProgram $bin --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} 64 + done 65 + ''; 66 + 67 + meta = with lib; { 68 + description = "Reimplementation of the original Unreal Engine"; 69 + mainProgram = "SurrealEngine"; 70 + homepage = "https://github.com/dpjudas/SurrealEngine"; 71 + license = licenses.zlib; 72 + maintainers = with maintainers; [ hughobrien ]; 73 + platforms = platforms.linux; 74 + }; 75 + })