1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/games/scummvm/default.nix

31 lines
902 B
Nix
Raw Normal View History

{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib }:
2014-05-03 10:27:12 +01:00
stdenv.mkDerivation rec {
2014-07-30 19:26:29 +01:00
name = "scummvm-1.7.0";
src = fetchurl {
2014-05-03 10:27:12 +01:00
url = "mirror://sourceforge/scummvm/${name}.tar.bz2";
2014-07-30 19:26:29 +01:00
sha256 = "d9ff0e8cf911afa466d5456d28fef692a17d47ddecfd428bf2fef591237c2e66";
};
buildInputs = [ SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ];
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/;
};
}