SDL2: split derivation

Changed files
+3
pkgs
development
libraries
+3
pkgs/development/libraries/SDL2/default.nix
···
sha256 = "0jqp46mxxbh9lhpx1ih6sp93k752j2smhpc0ad0q4cb3px0famfs";
};
+
outputs = [ "out" "dev" ];
+
patches = [ ./find-headers.patch ];
nativeBuildInputs = [ pkgconfig ];
···
postInstall = ''
rm $out/lib/*.a
+
moveToOutput bin/sdl2-config "$dev"
'';
setupHook = ./setup-hook.sh;