Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 47f384e23811
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4ec79e8c0976
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 2, 2019

  1. quake3e: init at 2019-09-09

    Philipp Middendorf authored and Lassulus committed Oct 2, 2019
    Copy the full SHA
    4ec79e8 View commit details
Showing with 38 additions and 0 deletions.
  1. +37 −0 pkgs/games/quake3/quake3e/default.nix
  2. +1 −0 pkgs/top-level/all-packages.nix
37 changes: 37 additions & 0 deletions pkgs/games/quake3/quake3e/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ stdenv, curl, libGL, libX11, libXxf86dga, alsaLib, libXrandr, libXxf86vm, libXext, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "Quake3e";
version = "2019-09-09";

src = fetchFromGitHub {
owner = "ec-";
repo = pname;
rev = version;
sha256 = "0i9flw8h87lagdpbci6vgqkriv05p3bidgqb4pwrxls947zwfcw8";
};

buildInputs = [ curl libGL libX11 libXxf86dga alsaLib libXrandr libXxf86vm libXext ];
enableParallelBuilding = true;

postPatch = ''
sed -i -e 's#OpenGLLib = dlopen( dllname#OpenGLLib = dlopen( "${libGL}/lib/libGL.so"#' code/unix/linux_qgl.c
sed -i -e 's#Sys_LoadLibrary( "libasound.so.2" )#Sys_LoadLibrary( "${alsaLib}/lib/libasound.so.2" )#' code/unix/linux_snd.c
sed -i -e 's#Sys_LoadLibrary( "libXrandr.so.2" )#Sys_LoadLibrary( "${libXrandr}/lib/libXrandr.so.2" )#' code/unix/x11_randr.c
sed -i -e 's#Sys_LoadLibrary( "libXxf86vm.so.1" )#Sys_LoadLibrary( "${libXxf86vm}/lib/libXxf86vm.so.1" )#' code/unix/x11_randr.c
sed -i -e 's#Sys_LoadLibrary( "libXxf86dga.so.1" )#Sys_LoadLibrary( "${libXxf86dga}/lib/libXxf86dga.so.1" )#' code/unix/x11_dga.c
'';

installPhase = ''
mkdir -p $out/bin
cp build/*/*x64 $out/bin
'';

meta = with stdenv.lib; {
homepage = https://github.com/ec-/Quake3e;
description = "Improved Quake III Arena engine";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ pmiddend ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -22397,6 +22397,7 @@ in
vkquake = callPackage ../games/quakespasm/vulkan.nix { };

ioquake3 = callPackage ../games/quake3/ioquake { };
quake3e = callPackage ../games/quake3/quake3e { };

quantumminigolf = callPackage ../games/quantumminigolf {};