blob: cdff7fab1e127277911c0c8c5e363b92c9a5f86c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, stdenv, cmake, libGL, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec {
pname = "eternity-engine";
version = "4.02.00";
src = fetchFromGitHub {
owner = "team-eternity";
repo = "eternity";
rev = version;
sha256 = "0dlz7axbiw003bgwk2hl43w8r2bwnxhi042i1xwdiwaja0cpnf5y";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libGL SDL2 SDL2_mixer SDL2_net ];
installPhase = ''
install -Dm755 eternity/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 = "https://doomworld.com/eternity";
description = "New school Doom port by James Haley";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ MP2E ];
};
}
|