3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/scummvm/default.nix

34 lines
979 B
Nix
Raw Normal View History

2016-08-28 08:54:22 +01:00
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib, mesa }:
2014-05-03 10:27:12 +01:00
stdenv.mkDerivation rec {
2016-05-25 00:32:57 +01:00
name = "scummvm-1.8.0";
2016-08-03 21:32:34 +01:00
src = fetchurl {
2014-05-03 10:27:12 +01:00
url = "mirror://sourceforge/scummvm/${name}.tar.bz2";
2016-05-25 00:32:57 +01:00
sha256 = "0f3zgvz886lk9ps0v333aq74vx6grlx68hg14gfaxcvj55g73v01";
};
2016-08-28 08:54:22 +01:00
buildInputs = [ SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib mesa ];
2016-08-03 21:32:34 +01:00
hardeningDisable = [ "format" ];
crossAttrs = {
preConfigure = ''
# Remove the --build flag set by the gcc cross wrapper setup
# hook
export configureFlags="--host=${stdenv.cross.config}"
'';
postConfigure = ''
# They use 'install -s', that calls the native strip instead of the cross
sed -i 's/-c -s/-c/' ports.mk;
'';
};
meta = {
description = "Program to run certain classic graphical point-and-click adventure games (such as Monkey Island)";
homepage = http://www.scummvm.org/;
platforms = stdenv.lib.platforms.linux;
};
}