cataclysm-dda: build the icon only on Darwin

This commit is contained in:
Mitsuhiro Nakamura 2018-01-22 23:06:35 +09:00
parent d77ce49c75
commit cf8cd83eff

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
"OSX_MIN=10.6" # SDL for macOS only supports deploying on 10.6 and above
];
postBuild = ''
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
# iconutil on macOS is not available in nixpkgs
png2icns data/osx/AppIcon.icns data/osx/AppIcon.iconset/*
'';