nixpkgs/pkgs/by-name/al/alienarena/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

67 lines
1.6 KiB
Nix

{ curl
, fetchFromGitHub
, freetype
, lib
, libGL
, libjpeg
, libogg
, libvorbis
, libX11
, libXxf86vm
, openal
, pkg-config
, stdenv
}:
stdenv.mkDerivation rec {
pname = "alienarena";
version = "7.71.7";
src = fetchFromGitHub {
owner = "alienarena";
repo = "alienarena";
rev = version;
hash = "sha256-ri0p/0onI5DU7kDxwdFxRyT1LQLVe89VNEYPXPgilOs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
curl
freetype
libGL
libjpeg
libogg
libvorbis
libX11
libXxf86vm
openal
];
patchPhase = ''
substituteInPlace ./configure \
--replace libopenal.so.1 ${openal}/lib/libopenal.so.1 \
--replace libGL.so.1 ${libGL}/lib/libGL.so.1
'';
meta = with lib; {
changelog = "https://github.com/alienarena/alienarena/releases/tag/${version}";
description = "Free, stand-alone first-person shooter computer game";
longDescription = ''
Do you like old school deathmatch with modern features? How
about rich, colorful, arcade-like atmospheres? How about retro
Sci-Fi? Then you're going to love what Alien Arena has in store
for you! This game combines some of the very best aspects of
such games as Quake III and Unreal Tournament and wraps them up
with a retro alien theme, while adding tons of original ideas to
make the game quite unique.
'';
homepage = "https://alienarena.org";
# Engine is under GPLv2, everything else is under
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ astsmtl ];
platforms = platforms.linux;
hydraPlatforms = [];
};
}