From bfbfe941abba2a0d7061c86d78b1e8facdeb17f8 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 11 Nov 2018 20:52:07 -0600 Subject: treewide: use scons setup hook Lots of packages can use it. Here is the list: - jackmix - klick - mixx - nova-filters - rhvoice - giv - mypaint - swift-im - bombono - mapnik - serf - nuitka - pyexiv2 - godot - hammer - toluapp - btanks - dxx-rebirth - endless-sky - globulation - the-powder-toy - fceux - gpsd - mongodb - rippled - mariadb - lprof --- pkgs/games/endless-sky/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'pkgs/games/endless-sky') diff --git a/pkgs/games/endless-sky/default.nix b/pkgs/games/endless-sky/default.nix index 8e1bd52eb42f..447724a2043f 100644 --- a/pkgs/games/endless-sky/default.nix +++ b/pkgs/games/endless-sky/default.nix @@ -22,18 +22,12 @@ stdenv.mkDerivation rec { SDL2 libpng libjpeg glew openal scons libmad ]; + prefixKey = "PREFIX="; + patches = [ ./fixes.patch ]; - buildPhase = '' - scons -j$NIX_BUILD_CORES PREFIX="$out" - ''; - - installPhase = '' - scons -j$NIX_BUILD_CORES install PREFIX="$out" - ''; - meta = with stdenv.lib; { description = "A sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control"; homepage = https://endless-sky.github.io/; -- cgit v1.2.3