git.iko.soy/typeable/nixpkgs
on master help sign in
cataclysm-dda{,-git}: no need for wrapper anymore
commitee6086c31dd8ddca8446fc405a1f80eb93684ad1 authorMitsuhiro Nakamura <m.nacamura@gmail.com> dateMon 22 Jan 2018, 22:58 (9 years ago) parentfc06a98
2 files changed+6−12
pkgs/games/cataclysm-dda/default.nix+3−6 pkgs/games/cataclysm-dda/git.nix+3−6
pkgs/games/cataclysm-dda/default.nix+3−6
@@ -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
pkgs/games/cataclysm-dda/git.nix+3−6
@@ -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, CoreFoundation, Cocoa }:
33
44stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 sha256 = "1a7kdmx76na4g65zra01qaq98lxp9j2dl9ddv09r0p5yxaizw68z";
1313 };
1414
15− nativeBuildInputs = [ makeWrapper pkgconfig ];
15+ nativeBuildInputs = [ pkgconfig ];
1616
1717 buildInputs = [ ncurses lua SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype gettext ]
1818 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation Cocoa ];
@@ -34,10 +34,7 @@ stdenv.mkDerivation rec {
3434 "NATIVE=osx CLANG=1"
3535 ];
3636
37− postInstall = ''
38− wrapProgram $out/bin/cataclysm-tiles \
39− --add-flags "--datadir $out/share/cataclysm-dda/"
40− '' + stdenv.lib.optionalString stdenv.isDarwin ''
37+ postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
4138 app=$out/Applications/Cataclysm.app
4239 install -D -m 444 data/osx/Info.plist -t $app/Contents
4340 install -D -m 444 data/osx/AppIcon.icns -t $app/Contents/Resources