diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2017-02-16 22:24:40 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2017-02-16 22:24:40 +0100 |
commit | 0c42efd9d70774eafb47212967caada630335731 (patch) | |
tree | 3d5159a2af7fb6c401a681939385ba6f77273a12 | |
parent | e62fe375757fb3175b859bb6dc171a23e15726c8 (diff) | |
download | nixlib-0c42efd9d70774eafb47212967caada630335731.tar nixlib-0c42efd9d70774eafb47212967caada630335731.tar.gz nixlib-0c42efd9d70774eafb47212967caada630335731.tar.bz2 nixlib-0c42efd9d70774eafb47212967caada630335731.tar.lz nixlib-0c42efd9d70774eafb47212967caada630335731.tar.xz nixlib-0c42efd9d70774eafb47212967caada630335731.tar.zst nixlib-0c42efd9d70774eafb47212967caada630335731.zip |
SDL2: fix creation of libSDL2main.a
It's required by a trigger rally update I will commit next. And other games use that too.
-rw-r--r-- | pkgs/development/libraries/SDL2/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 5d818cb315c5..719329bd528f 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -52,6 +52,8 @@ stdenv.mkDerivation rec { # https://bugzilla.libsdl.org/show_bug.cgi?id=1431 dontDisableStatic = true; + enableParallelBuilding = true; + # XXX: By default, SDL wants to dlopen() PulseAudio, in which case # we must arrange to add it to its RPATH; however, `patchelf' seems # to fail at doing this, hence `--disable-pulseaudio-shared'. @@ -62,6 +64,7 @@ stdenv.mkDerivation rec { }; postInstall = '' + moveToOutput lib/libSDL2main.a "$dev" rm $out/lib/*.a moveToOutput bin/sdl2-config "$dev" ''; |