2021-07-10 08:58:34 +02:00
|
|
|
{ lib, stdenv, cmake, libGL, SDL2, SDL2_mixer, SDL2_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";
|
2021-07-10 08:58:34 +02:00
|
|
|
version = "4.02.00";
|
2017-05-22 13:36:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "team-eternity";
|
|
|
|
repo = "eternity";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2021-07-10 08:58:34 +02:00
|
|
|
sha256 = "0dlz7axbiw003bgwk2hl43w8r2bwnxhi042i1xwdiwaja0cpnf5y";
|
|
|
|
fetchSubmodules = true;
|
2014-09-02 11:03:54 +02:00
|
|
|
};
|
|
|
|
|
2017-05-22 13:36:25 +02:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
2021-07-10 08:58:34 +02:00
|
|
|
buildInputs = [ libGL SDL2 SDL2_mixer SDL2_net ];
|
2014-09-02 11:03:54 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-10 08:58:34 +02:00
|
|
|
install -Dm755 eternity/eternity $out/lib/eternity/eternity
|
2017-05-22 13:36:25 +02:00
|
|
|
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 = {
|
2021-07-10 08:58:34 +02:00
|
|
|
homepage = "https://doomworld.com/eternity";
|
2014-09-02 11:03:54 +02:00
|
|
|
description = "New school Doom port by James Haley";
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ MP2E ];
|
2014-09-02 11:03:54 +02:00
|
|
|
};
|
|
|
|
}
|