nixpkgs/pkgs/by-name/ez/ezquake/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchFromGitHub, curl, expat
, jansson, libpng, libjpeg, libGLU, libGL
, libsndfile, libXxf86vm, pcre, pkg-config, SDL2
, vim, speex }:
2017-06-15 07:37:24 +01:00
stdenv.mkDerivation rec {
pname = "ezquake";
2023-08-22 13:51:54 +01:00
version = "3.6.3";
2017-06-15 07:37:24 +01:00
src = fetchFromGitHub {
owner = "QW-Group";
2017-06-15 07:37:24 +01:00
repo = pname + "-source";
2020-02-12 17:36:31 +00:00
rev = version;
fetchSubmodules = true;
2023-08-22 13:51:54 +01:00
hash = "sha256-ThrsJfj+eP7Lv2ZSNLO6/b98VHrL6/rhwf2p0qMvTF8=";
2017-06-15 07:37:24 +01:00
};
nativeBuildInputs = [ pkg-config ];
2017-06-15 07:37:24 +01:00
buildInputs = [
expat curl jansson libpng libjpeg libGLU libGL libsndfile libXxf86vm pcre SDL2 vim speex
2017-06-15 07:37:24 +01:00
];
2024-08-16 22:05:32 +01:00
installPhase = let
sys = lib.last (lib.splitString "-" stdenv.hostPlatform.system);
arch = lib.head (lib.splitString "-" stdenv.hostPlatform.system);
2017-06-15 07:37:24 +01:00
in ''
mkdir -p $out/bin
find .
mv ezquake-${sys}-${arch} $out/bin/ezquake
'';
2018-07-03 13:44:18 +01:00
enableParallelBuilding = true;
2024-08-16 22:05:32 +01:00
meta = {
homepage = "https://ezquake.com/";
2020-02-12 17:36:31 +00:00
description = "Modern QuakeWorld client focused on competitive online play";
mainProgram = "ezquake";
2024-08-16 22:05:32 +01:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ edwtjo ];
2017-06-15 07:37:24 +01:00
};
}