mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-27 23:57:42 +03:00
Merge pull request #112088 from rmcgibbo/super-tux-kart
supertuxkart: fix build
This commit is contained in:
commit
175bdeb4f5
@ -1,8 +1,27 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchsvn, cmake, pkg-config, makeWrapper
|
||||
, SDL2, glew, openal, libvorbis, libogg, curl, freetype, bluez, libjpeg, libpng, enet, harfbuzz
|
||||
, mcpp, wiiuse, angelscript
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, fetchsvn
|
||||
, cmake
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, SDL2
|
||||
, glew
|
||||
, openal
|
||||
, libvorbis
|
||||
, libogg
|
||||
, curl
|
||||
, freetype
|
||||
, bluez
|
||||
, libjpeg
|
||||
, libpng
|
||||
, enet
|
||||
, harfbuzz
|
||||
, mcpp
|
||||
, wiiuse
|
||||
, angelscript
|
||||
}:
|
||||
|
||||
let
|
||||
dir = "stk-code";
|
||||
assets = fetchsvn {
|
||||
@ -36,7 +55,8 @@ let
|
||||
# Not packaged to this date
|
||||
"sheenbidi"
|
||||
];
|
||||
in stdenv.mkDerivation rec {
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "supertuxkart";
|
||||
version = "1.2";
|
||||
@ -49,6 +69,14 @@ in stdenv.mkDerivation rec {
|
||||
name = dir;
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Fix build with SDL 2.0.14
|
||||
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/games-action/supertuxkart/files/supertuxkart-1.2-new-sdl.patch?id=288360dc7ce2f968a2f12099edeace3f3ed1a705";
|
||||
sha256 = "1jgab9393qan8qbqf5bf8cgw4mynlr5a6pggqhybzsmaczgnns3n";
|
||||
})
|
||||
];
|
||||
|
||||
# Deletes all bundled libs in stk-code/lib except those
|
||||
# That couldn't be replaced with system packages
|
||||
postPatch = ''
|
||||
@ -58,8 +86,21 @@ in stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
SDL2 glew openal libvorbis libogg freetype curl bluez libjpeg libpng enet harfbuzz
|
||||
mcpp wiiuse angelscript
|
||||
SDL2
|
||||
glew
|
||||
openal
|
||||
libvorbis
|
||||
libogg
|
||||
freetype
|
||||
curl
|
||||
bluez
|
||||
libjpeg
|
||||
libpng
|
||||
enet
|
||||
harfbuzz
|
||||
mcpp
|
||||
wiiuse
|
||||
angelscript
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user