depot/third_party/nixpkgs/pkgs/by-name/et/etlegacy/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

42 lines
1.2 KiB
Nix

{ lib
, symlinkJoin
, etlegacy-assets
, etlegacy-unwrapped
, makeBinaryWrapper
}:
symlinkJoin {
name = "etlegacy";
version = "2.82.1";
paths = [
etlegacy-assets
etlegacy-unwrapped
];
nativeBuildInputs = [
makeBinaryWrapper
];
postBuild = ''
wrapProgram $out/bin/etl.* \
--add-flags "+set fs_basepath ${placeholder "out"}/lib/etlegacy"
wrapProgram $out/bin/etlded.* \
--add-flags "+set fs_basepath ${placeholder "out"}/lib/etlegacy"
makeWrapper $out/bin/etl.* $out/bin/etl
makeWrapper $out/bin/etlded.* $out/bin/etlded
'';
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";
license = with lib.licenses; [ gpl3Plus cc-by-nc-sa-30 ];
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;
};
}