Commit 08e3130 1 parent 7eef63e commit 08e3130 Copy full SHA for 08e3130
File tree 1 file changed +71
-0
lines changed
pkgs/by-name/su/surreal-engine
1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ alsa-lib ,
3
+ cmake ,
4
+ dbus ,
5
+ fetchFromGitHub ,
6
+ lib ,
7
+ makeWrapper ,
8
+ openal ,
9
+ pkg-config ,
10
+ SDL2 ,
11
+ stdenv ,
12
+ vulkan-loader ,
13
+ waylandpp ,
14
+ } :
15
+
16
+ stdenv . mkDerivation ( finalAttrs : {
17
+ pname = "surreal-engine" ;
18
+ version = "2024-08-31" ;
19
+
20
+ src = fetchFromGitHub {
21
+ owner = "dpjudas" ;
22
+ repo = "SurrealEngine" ;
23
+ rev = "784a2707fba5dc641bee85cc48e7e15dc7585044" ;
24
+ hash = "sha256-7k7/G+qIIVCxKZQUtQ31MODdN4bU2bP1PYgv6r6laUE=" ;
25
+ } ;
26
+
27
+ nativeBuildInputs = [
28
+ cmake
29
+ makeWrapper
30
+ pkg-config
31
+ ] ;
32
+ buildInputs = [
33
+ alsa-lib
34
+ dbus
35
+ openal
36
+ SDL2
37
+ vulkan-loader
38
+ waylandpp
39
+ ] ;
40
+
41
+ cmakeBuildType = "Release" ;
42
+ parallelBuild = true ;
43
+
44
+ postPatch = ''
45
+ substituteInPlace SurrealEngine/UI/WidgetResourceData.cpp --replace-fail /usr/share $out/share
46
+ '' ;
47
+
48
+ installPhase = ''
49
+ runHook preInstall
50
+
51
+ install -Dt $out/bin Surreal{Debugger,Editor,Engine}
52
+ install -Dt $out/share/surrealengine SurrealEngine.pk3
53
+
54
+ runHook postInstall
55
+ '' ;
56
+
57
+ postFixup = ''
58
+ for bin in $out/bin/Surreal{Debugger,Editor,Engine}; do
59
+ wrapProgram $bin --prefix LD_LIBRARY_PATH : ${ lib . makeLibraryPath [ vulkan-loader ] }
60
+ done
61
+ '' ;
62
+
63
+ meta = with lib ; {
64
+ description = "Reimplementation of the original Unreal Engine" ;
65
+ mainProgram = "SurrealEngine" ;
66
+ homepage = "https://github.com/dpjudas/SurrealEngine" ;
67
+ license = licenses . zlib ;
68
+ maintainers = with maintainers ; [ hughobrien ] ;
69
+ platforms = platforms . linux ;
70
+ } ;
71
+ } )
You can’t perform that action at this time.
0 commit comments