3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/eternity-engine/default.nix

31 lines
887 B
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, cmake, libGL, SDL, SDL_mixer, SDL_net, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec {
pname = "eternity-engine";
version = "3.42.02";
src = fetchFromGitHub {
owner = "team-eternity";
repo = "eternity";
2019-09-09 00:38:31 +01:00
rev = version;
sha256 = "00kpq4k23hjmzjaymw3sdda7mqk8fjq6dzf7fmdal9fm7lfmj41k";
};
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libGL SDL SDL_mixer SDL_net ];
installPhase = ''
install -Dm755 source/eternity $out/lib/eternity/eternity
cp -r $src/base $out/lib/eternity/base
mkdir $out/bin
makeWrapper $out/lib/eternity/eternity $out/bin/eternity
'';
meta = {
homepage = "http://doomworld.com/eternity";
description = "New school Doom port by James Haley";
2021-01-15 04:31:39 +00:00
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ MP2E ];
};
}