2018-02-24 13:06:44 +01:00
|
|
|
{ stdenv, cmake, libGL, SDL, SDL_mixer, SDL_net, fetchFromGitHub, makeWrapper }:
|
2014-09-02 11:03:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "eternity-engine";
|
2017-05-22 13:36:25 +02:00
|
|
|
version = "3.42.02";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "team-eternity";
|
|
|
|
repo = "eternity";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2017-05-22 13:36:25 +02:00
|
|
|
sha256 = "00kpq4k23hjmzjaymw3sdda7mqk8fjq6dzf7fmdal9fm7lfmj41k";
|
2014-09-02 11:03:54 +02:00
|
|
|
};
|
|
|
|
|
2017-05-22 13:36:25 +02:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
2018-02-24 13:06:44 +01:00
|
|
|
buildInputs = [ libGL SDL SDL_mixer SDL_net ];
|
2014-09-02 11:03:54 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-05-22 13:36:25 +02:00
|
|
|
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
|
2014-09-02 11:03:54 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://doomworld.com/eternity;
|
|
|
|
description = "New school Doom port by James Haley";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-11-19 12:03:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-09-02 11:03:54 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ MP2E ];
|
|
|
|
};
|
|
|
|
}
|