Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
instead: 3.3.1 -> 3.3.2; fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
marius851000 authored and Jon committed Sep 9, 2020
1 parent 7e5991e commit 43d9d1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/games/instead/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, SDL2, SDL2_ttf, SDL2_image, SDL2_mixer, pkgconfig, lua, zlib, unzip }:

let
version = "3.3.1";
version = "3.3.2";

# I took several games at random from http://instead.syscall.ru/games/
games = [
Expand Down Expand Up @@ -33,14 +33,19 @@ stdenv.mkDerivation {

src = fetchurl {
url = "mirror://sourceforge/project/instead/instead/${version}/instead_${version}.tar.gz";
sha256 = "10bppcdjnd0all71l5akdvy7fx0c8s8x0za9qxszs8cjmlv9z1q0";
sha256 = "u5j2kDKRvMQPsG8iA6uOBScuyE/e1BJIK2+qVL6jqQs=";
};

NIX_LDFLAGS = "-llua -lgcc_s";

nativeBuildInputs = [ pkgconfig unzip ];
buildInputs = [ SDL2 SDL2_ttf SDL2_image SDL2_mixer lua zlib ];

postPatch = ''
substituteInPlace configure.sh \
--replace "/tmp/sdl-test" $(mktemp)
'';

configurePhase = ''
{ echo 2; echo $out; } | ./configure.sh
'';
Expand Down

0 comments on commit 43d9d1d

Please sign in to comment.