1 { lib, stdenv, makeWrapper
2 , dxx-rebirth, descent1-assets, descent2-assets }:
5 generic = ver: assets: stdenv.mkDerivation {
6 name = "d${toString ver}x-rebirth-full-${assets.version}";
8 nativeBuildInputs = [ makeWrapper ];
13 makeWrapper ${dxx-rebirth}/bin/d${toString ver}x-rebirth $out/bin/descent${toString ver} \
14 --add-flags "-hogdir ${assets}/share/games/descent${toString ver}"
18 description = "Descent ${toString ver} using the DXX-Rebirth project engine and game assets from GOG";
19 homepage = "https://www.dxx-rebirth.com/";
20 license = with licenses; [ free unfree ];
21 maintainers = with maintainers; [ peterhoeg ];
22 platforms = with platforms; linux;
28 d1x-rebirth-full = generic 1 descent1-assets;
29 d2x-rebirth-full = generic 2 descent2-assets;