From 51b661be2c84bb3a3cd0f44d211449006a047218 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Thu, 1 Nov 2018 18:18:25 -0400 Subject: [PATCH] speed_dreams: fix compilation issues --- pkgs/games/speed-dreams/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/games/speed-dreams/default.nix b/pkgs/games/speed-dreams/default.nix index 4bf03fec9de9..5f6e20c39b6b 100644 --- a/pkgs/games/speed-dreams/default.nix +++ b/pkgs/games/speed-dreams/default.nix @@ -35,6 +35,12 @@ stdenv.mkDerivation rec { tar -xf ${wip-cars-and-tracks} ''; + prePatch = '' + # https://sourceforge.net/p/speed-dreams/mailman/message/35665539/ + sed -i "s|lastSlash = '\\\0'|lastSlash = NULL|" src/libs/tgf/params.cpp + sed -i "s|const char\* error = '\\\0'|const char\* error = NULL|" src/libs/tgfclient/openalmusicplayer.cpp + ''; + preBuild = '' make -C src/libs/portability make -C src/libs/portability portability.o