2023-08-19 22:30:28 +02:00
|
|
|
{ lib
|
2024-03-17 21:40:03 +01:00
|
|
|
, symlinkJoin
|
|
|
|
, etlegacy-assets
|
|
|
|
, etlegacy-unwrapped
|
2024-03-17 18:40:30 +01:00
|
|
|
, makeBinaryWrapper
|
2023-08-19 22:30:28 +02:00
|
|
|
}:
|
2023-04-06 10:00:28 +02:00
|
|
|
|
2024-03-17 21:40:03 +01:00
|
|
|
symlinkJoin {
|
|
|
|
name = "etlegacy";
|
|
|
|
version = "2.82.0";
|
|
|
|
paths = [
|
|
|
|
etlegacy-assets
|
|
|
|
etlegacy-unwrapped
|
|
|
|
];
|
2023-04-06 10:00:28 +02:00
|
|
|
|
2023-08-19 22:30:28 +02:00
|
|
|
nativeBuildInputs = [
|
2024-03-17 18:40:30 +01:00
|
|
|
makeBinaryWrapper
|
2023-08-19 22:30:28 +02:00
|
|
|
];
|
2023-04-06 10:00:28 +02:00
|
|
|
|
2024-03-17 21:40:03 +01:00
|
|
|
postBuild = ''
|
2024-04-09 22:47:07 +02:00
|
|
|
wrapProgram $out/bin/etl.* \
|
2024-03-17 21:40:03 +01:00
|
|
|
--add-flags "+set fs_basepath ${placeholder "out"}/lib/etlegacy"
|
2024-04-09 22:47:07 +02:00
|
|
|
wrapProgram $out/bin/etlded.* \
|
2024-03-17 21:40:03 +01:00
|
|
|
--add-flags "+set fs_basepath ${placeholder "out"}/lib/etlegacy"
|
2024-04-09 22:47:07 +02:00
|
|
|
makeWrapper $out/bin/etl.* $out/bin/etl
|
|
|
|
makeWrapper $out/bin/etlded.* $out/bin/etlded
|
2023-08-19 22:30:28 +02:00
|
|
|
'';
|
2023-04-06 10:00:28 +02:00
|
|
|
|
2023-08-19 22:30:28 +02:00
|
|
|
meta = {
|
|
|
|
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";
|
|
|
|
homepage = "https://etlegacy.com";
|
2024-03-17 21:40:03 +01:00
|
|
|
license = with lib.licenses; [ gpl3Plus cc-by-nc-sa-30 ];
|
2023-08-19 22:30:28 +02:00
|
|
|
longDescription = ''
|
|
|
|
ET: Legacy, an open source project fully compatible client and server
|
|
|
|
for the popular online FPS game Wolfenstein: Enemy Territory - whose
|
|
|
|
gameplay is still considered unmatched by many, despite its great age.
|
|
|
|
'';
|
|
|
|
mainProgram = "etl";
|
|
|
|
maintainers = with lib.maintainers; [ ashleyghooper drupol ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|