From 5bd1bd08ed4e7bc10a5d426b9b02e212e9a08f8b Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 8 Dec 2019 23:35:30 +0000 Subject: [PATCH] instead: 3.3.0 -> 3.3.1 --- pkgs/games/instead/default.nix | 16 ++++++++-------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/games/instead/default.nix b/pkgs/games/instead/default.nix index b25341da01d..fff15b5c5b0 100644 --- a/pkgs/games/instead/default.nix +++ b/pkgs/games/instead/default.nix @@ -1,7 +1,7 @@ -{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, SDL_mixer, pkgconfig, lua, zlib, unzip }: +{ stdenv, fetchurl, SDL2, SDL2_ttf, SDL2_image, SDL2_mixer, pkgconfig, lua, zlib, unzip }: let - version = "3.3.0"; + version = "3.3.1"; # I took several games at random from http://instead.syscall.ru/games/ games = [ @@ -33,13 +33,13 @@ stdenv.mkDerivation { src = fetchurl { url = "mirror://sourceforge/project/instead/instead/${version}/instead_${version}.tar.gz"; - sha256 = "0kskwrq2gy1gpp97134sjrw08ip1h6i5dc64zrbl9yv7jaz4by69"; + sha256 = "10bppcdjnd0all71l5akdvy7fx0c8s8x0za9qxszs8cjmlv9z1q0"; }; NIX_LDFLAGS = "-llua -lgcc_s"; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ SDL SDL_ttf SDL_image SDL_mixer lua zlib unzip ]; + nativeBuildInputs = [ pkgconfig unzip ]; + buildInputs = [ SDL2 SDL2_ttf SDL2_image SDL2_mixer lua zlib ]; configurePhase = '' { echo 2; echo $out; } | ./configure.sh @@ -47,9 +47,7 @@ stdenv.mkDerivation { inherit games; - installPhase = '' - make install - + postInstall = '' pushd $out/share/instead/games for a in $games; do unzip $a @@ -57,6 +55,8 @@ stdenv.mkDerivation { popd ''; + enableParallelBuilding = true; + meta = with stdenv.lib; { description = "Simple text adventure interpreter for Unix and Windows"; homepage = http://instead.syscall.ru/; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e68465838e7..94b5c7a6641 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22841,9 +22841,7 @@ in ideogram = callPackage ../applications/graphics/ideogram { }; - instead = callPackage ../games/instead { - lua = lua5; - }; + instead = callPackage ../games/instead { }; instead-launcher = callPackage ../games/instead-launcher { };