1 { lib, stdenv, fetchFromGitHub, opusfile, libogg, SDL2, openal, freetype
2 , libjpeg, curl, makeWrapper }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "0g5wgqb1gm34pd05dj2i8nj3qhsz0831p3m7bsgxpjcg9c00jpyw";
15 enableParallelBuilding = true;
17 sourceRoot = "${src.name}/SP";
21 "COPYDIR=${placeholder "out"}/opt/iortcw"
26 installTargets = [ "copyfiles" ];
29 opusfile libogg SDL2 freetype libjpeg openal curl
31 nativeBuildInputs = [ makeWrapper ];
33 env.NIX_CFLAGS_COMPILE = toString [
34 "-I${SDL2.dev}/include/SDL2"
35 "-I${opusfile.dev}/include/opus"
37 NIX_CFLAGS_LINK = [ "-lSDL2" ];
40 for i in `find $out/opt/iortcw -maxdepth 1 -type f -executable`; do
41 makeWrapper $i $out/bin/`basename $i` --chdir "$out/opt/iortcw"
46 description = "Single player version of game engine for Return to Castle Wolfenstein";
47 homepage = src.meta.homepage;
48 license = licenses.gpl3;
49 platforms = platforms.linux;
50 maintainers = with maintainers; [ ];