@@ -1,4 +1,4 @@
1−{ fetchFromGitHub, stdenv, makeWrapper, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf,
1+{ fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf,
22SDL2_mixer, freetype, gettext, Cocoa, libicns }:
33
44stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 sha256 = "03sdzsk4qdq99qckq0axbsvg1apn6xizscd8pwp5w6kq2fyj5xkv";
1313 };
1414
15− nativeBuildInputs = [ makeWrapper pkgconfig ]
15+ nativeBuildInputs = [ pkgconfig ]
1616 ++ stdenv.lib.optionals stdenv.isDarwin [ libicns ];
1717
1818 buildInputs = [ ncurses lua SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype gettext ]
@@ -41,10 +41,7 @@ stdenv.mkDerivation rec {
4141 png2icns data/osx/AppIcon.icns data/osx/AppIcon.iconset/*
4242 '';
4343
44− postInstall = ''
45− wrapProgram $out/bin/cataclysm-tiles \
46− --add-flags "--datadir $out/share/cataclysm-dda/"
47− '' + stdenv.lib.optionalString stdenv.isDarwin ''
44+ postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
4845 app=$out/Applications/Cataclysm.app
4946 install -D -m 444 data/osx/Info.plist -t $app/Contents
5047 install -D -m 444 data/osx/AppIcon.icns -t $app/Contents/Resources