2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, makeWrapper
|
|
, openal, fluidsynth_1, soundfont-fluid, libGL, SDL2
|
|
, bzip2, zlib, libjpeg, libsndfile, mpg123, game-music-emu }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gzdoom";
|
|
version = "4.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coelckers";
|
|
repo = "gzdoom";
|
|
rev = "g${version}";
|
|
sha256 = "0ifc10y8pdxb6ra38m55k26wb2cwdbjrblx3s24xivmsnkpbn7f6";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
buildInputs = [
|
|
SDL2 libGL openal fluidsynth_1 bzip2 zlib libjpeg libsndfile mpg123
|
|
game-music-emu
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
NIX_CFLAGS_LINK = [ "-lopenal" "-lfluidsynth" ];
|
|
|
|
preConfigure = ''
|
|
sed -i \
|
|
-e "s@/usr/share/sounds/sf2/@${soundfont-fluid}/share/soundfonts/@g" \
|
|
-e "s@FluidR3_GM.sf2@FluidR3_GM2-2.sf2@g" \
|
|
src/sound/mididevices/music_fluidsynth_mididevice.cpp
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom"
|
|
for i in *.pk3; do
|
|
install -Dm644 "$i" "$out/lib/gzdoom/$i"
|
|
done
|
|
mkdir $out/bin
|
|
makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/coelckers/gzdoom;
|
|
description = "A Doom source port based on ZDoom. It features an OpenGL renderer and lots of new features";
|
|
license = licenses.gpl3;
|
|
platforms = ["x86_64-linux"];
|
|
maintainers = with maintainers; [ lassulus ];
|
|
};
|
|
}
|