diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-11 20:52:07 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-13 19:14:10 -0600 |
commit | bfbfe941abba2a0d7061c86d78b1e8facdeb17f8 (patch) | |
tree | 2f6b86640ce155d6ecf2c5ec79811ad63c2cc703 /pkgs/games/globulation | |
parent | 1ba9fd335d90bca03b3868d3bf10c3d9a9de29c6 (diff) | |
download | nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.gz nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.bz2 nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.lz nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.xz nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.tar.zst nixpkgs-bfbfe941abba2a0d7061c86d78b1e8facdeb17f8.zip |
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
Diffstat (limited to 'pkgs/games/globulation')
-rw-r--r-- | pkgs/games/globulation/default.nix | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/pkgs/games/globulation/default.nix b/pkgs/games/globulation/default.nix index 4bcf6cffa16..0c3b184b495 100644 --- a/pkgs/games/globulation/default.nix +++ b/pkgs/games/globulation/default.nix @@ -32,19 +32,15 @@ stdenv.mkDerivation rec { sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct ''; - buildInputs = [ libGLU_combined SDL scons SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ]; + nativeBuildInputs = [ scons ]; + buildInputs = [ libGLU_combined SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ]; - buildPhase = '' - scons + postConfigure = '' + sconsFlags+=" BINDIR=$out/bin" + sconsFlags+=" INSTALLDIR=$out/share/globulation2" + sconsFlags+=" DATADIR=$out/share/globulation2/glob2" ''; - installPhase = '' - scons install \ - BINDIR=$out/bin \ - INSTALLDIR=$out/share/globulation2 \ - DATADIR=$out/share/globulation2/glob2 - ''; - meta = with stdenv.lib; { description = "RTS without micromanagement"; maintainers = with maintainers; [ raskin ]; @@ -53,4 +49,3 @@ stdenv.mkDerivation rec { }; passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install"; } - |