27 fakeGit = writeShellApplication {
31 if [ "$1" = "describe" ]; then
38 pname = "etlegacy-unwrapped";
41 src = fetchFromGitHub {
45 hash = "sha256-hZwLYaYV0j3YwFi8KRr4DZV73L2yIwFJ3XqCyq6L7hE=";
74 # Required for build time to not be in 1980
75 export SOURCE_DATE_EPOCH=$(date +%s)
76 # This indicates the build was by a CI pipeline and prevents the resource
77 # files from being flagged as 'dirty' due to potentially being custom built.
83 "-DCMAKE_BUILD_TYPE=Release"
90 "-DBUNDLED_FREETYPE=0"
91 "-DBUNDLED_OGG_VORBIS=0"
99 "-DINSTALL_WOLFADMIN=0"
100 "-DFEATURE_AUTOUPDATE=0"
101 "-DINSTALL_DEFAULT_BASEDIR=${placeholder "out"}/lib/etlegacy"
102 "-DINSTALL_DEFAULT_BINDIR=${placeholder "out"}/bin"
105 hardeningDisable = [ "fortify" ];
108 description = "ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license";
109 homepage = "https://etlegacy.com";
110 license = with lib.licenses; [ gpl3Plus ];
112 ET: Legacy, an open source project fully compatible client and server
113 for the popular online FPS game Wolfenstein: Enemy Territory - whose
114 gameplay is still considered unmatched by many, despite its great age.
116 maintainers = with lib.maintainers; [