1 { lib, stdenv, fetchurl, SDL2, SDL2_ttf, SDL2_image, SDL2_mixer, pkg-config, lua, zlib, unzip }:
4 # I took several games at random from https://instead.syscall.ru/games/
7 url = "http://instead-games.googlecode.com/files/instead-apple-day-1.2.zip";
8 sha256 = "0d4m554hiqmgl4xl0jp0b3bqjl35879768hqznh9y57y04sygd2a";
11 url = "http://instead-games.googlecode.com/files/instead-cat_en-1.2.zip";
12 sha256 = "0jlm3ssqlka16dm0rg6qfjh6xdh3pv7lj2s4ib4mqwj2vfy0v6sg";
15 url = "http://instead-games.googlecode.com/files/instead-vinny-0.1.zip";
16 sha256 = "15qdbg82zp3a8vz4qxminr0xbzbdpnsciliy2wm3raz4hnadawg1";
19 url = "http://instead-games.googlecode.com/files/instead-toilet3in1-1.2.zip";
20 sha256 = "0wz4bljbg67m84qwpaqpzs934a5pcbhpgh39fvbbbfvnnlm4lirl";
23 url = "http://instead-games.googlecode.com/files/instead-kayleth-0.4.1.zip";
24 sha256 = "0xmn9inys0kbcdd02qaqp8gazqs67xq3fq7hvcy2qb9jbq85j8b2";
29 stdenv.mkDerivation rec {
34 url = "mirror://sourceforge/project/instead/instead/${version}/instead_${version}.tar.gz";
35 sha256 = "u5j2kDKRvMQPsG8iA6uOBScuyE/e1BJIK2+qVL6jqQs=";
38 NIX_LDFLAGS = "-llua -lgcc_s";
40 nativeBuildInputs = [ pkg-config unzip ];
41 buildInputs = [ SDL2 SDL2_ttf SDL2_image SDL2_mixer lua zlib ];
44 substituteInPlace configure.sh \
45 --replace "/tmp/sdl-test" $(mktemp)
49 { echo 2; echo $out; } | ./configure.sh
55 pushd $out/share/instead/games
62 enableParallelBuilding = true;
65 description = "Simple text adventure interpreter for Unix and Windows";
66 homepage = "https://instead.syscall.ru/";
67 license = lib.licenses.mit;
68 platforms = with lib.platforms; linux;
69 maintainers = with maintainers; [ pSub ];