etlegacy: reformat files
This commit is contained in:
parent
bc586df93d
commit
2836fd6fce
1 changed files with 106 additions and 99 deletions
|
@ -1,28 +1,28 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
makeWrapper,
|
||||
writeShellApplication,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
cmake,
|
||||
git,
|
||||
glew,
|
||||
SDL2,
|
||||
zlib,
|
||||
minizip,
|
||||
libjpeg,
|
||||
curl,
|
||||
lua,
|
||||
libogg,
|
||||
libtheora,
|
||||
freetype,
|
||||
libpng,
|
||||
sqlite,
|
||||
openal,
|
||||
unzip,
|
||||
cjson,
|
||||
}: let
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, writeShellApplication
|
||||
, fetchFromGitHub
|
||||
, cjson
|
||||
, cmake
|
||||
, git
|
||||
, makeWrapper
|
||||
, unzip
|
||||
, curl
|
||||
, freetype
|
||||
, glew
|
||||
, libjpeg
|
||||
, libogg
|
||||
, libpng
|
||||
, libtheora
|
||||
, lua
|
||||
, minizip
|
||||
, openal
|
||||
, SDL2
|
||||
, sqlite
|
||||
, zlib
|
||||
}:
|
||||
let
|
||||
version = "2.81.1";
|
||||
|
||||
fetchAsset = { asset, hash }: fetchurl {
|
||||
|
@ -62,25 +62,33 @@ in
|
|||
src = fetchFromGitHub {
|
||||
owner = "etlegacy";
|
||||
repo = "etlegacy";
|
||||
rev = "refs/tags/v" + version;
|
||||
sha256 = "sha256-CGXtc51vaId/SHbD34ZeT0gPsrl7p2DEw/Kp+GBZIaA="; # 2.81.1
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-CGXtc51vaId/SHbD34ZeT0gPsrl7p2DEw/Kp+GBZIaA="; # 2.81.1
|
||||
};
|
||||
|
||||
nativeBuildInputs = [cmake fakeGit git makeWrapper unzip cjson];
|
||||
nativeBuildInputs = [
|
||||
cjson
|
||||
cmake
|
||||
fakeGit
|
||||
git
|
||||
makeWrapper
|
||||
unzip
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glew
|
||||
SDL2
|
||||
zlib
|
||||
minizip
|
||||
libjpeg
|
||||
curl
|
||||
lua
|
||||
libogg
|
||||
libtheora
|
||||
freetype
|
||||
glew
|
||||
libjpeg
|
||||
libogg
|
||||
libpng
|
||||
sqlite
|
||||
libtheora
|
||||
lua
|
||||
minizip
|
||||
openal
|
||||
SDL2
|
||||
sqlite
|
||||
zlib
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
|
@ -108,28 +116,27 @@ in
|
|||
];
|
||||
|
||||
postInstall = ''
|
||||
ETMAIN=$out/lib/etlegacy/etmain
|
||||
mkdir -p $ETMAIN
|
||||
ln -s ${pak0} $ETMAIN/pak0.pk3
|
||||
ln -s ${pak1} $ETMAIN/pak1.pk3
|
||||
ln -s ${pak2} $ETMAIN/pak2.pk3
|
||||
ln -s ${pak0} $out/lib/etlegacy/etmain/pak0.pk3
|
||||
ln -s ${pak1} $out/lib/etlegacy/etmain/pak1.pk3
|
||||
ln -s ${pak2} $out/lib/etlegacy/etmain/pak2.pk3
|
||||
|
||||
makeWrapper $out/bin/etl.* $out/bin/etl
|
||||
makeWrapper $out/bin/etlded.* $out/bin/etlded
|
||||
'';
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
meta = with lib; {
|
||||
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";
|
||||
platforms = ["i686-linux" "x86_64-linux"];
|
||||
license = [licenses.gpl3 licenses.cc-by-nc-sa-30];
|
||||
license = with lib.licenses; [ gpl3 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 maintainers; [ashleyghooper drupol];
|
||||
maintainers = with lib.maintainers; [ ashleyghooper drupol ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue