vvvvvv: 2.3.6 -> 2.4

Diff: https://github.com/TerryCavanagh/VVVVVV/compare/2.3.6...2.4
This commit is contained in:
Martino Fontana 2024-01-11 10:41:25 +01:00
parent eabe8d3efa
commit 8d51652b7d
2 changed files with 11 additions and 28 deletions

View File

@ -6,11 +6,10 @@
, makeWrapper
, copyDesktopItems
, makeDesktopItem
, faudio
, physfs
, SDL2
, SDL2_mixer
, tinyxml-2
, utf8cpp
, Foundation
, IOKit
, makeAndPlay ? false
@ -18,19 +17,16 @@
stdenv.mkDerivation rec {
pname = "vvvvvv";
version = "2.3.6";
version = "2.4";
src = fetchFromGitHub {
owner = "TerryCavanagh";
repo = "VVVVVV";
rev = version;
sha256 = "sha256-sLNO4vkmlirsqJmCV9YWpyNnIiigU1KMls7rOgWgSmQ=";
sha256 = "sha256-AecaEWjWELRnCzTdMz+rDXVKnpPF+LNmxiKqMwQMm4k=";
fetchSubmodules = true;
};
patches = [
./utf8cpp.patch
];
dataZip = fetchurl {
url = "https://thelettervsixtim.es/makeandplay/data.zip";
name = "data.zip";
@ -45,21 +41,16 @@ stdenv.mkDerivation rec {
];
buildInputs = [
faudio
physfs
SDL2
SDL2_mixer
tinyxml-2
utf8cpp
] ++ lib.optionals stdenv.isDarwin [ Foundation IOKit ];
# Help CMake find SDL_mixer.h
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2_mixer}/include/SDL2";
cmakeDir = "../desktop_version";
cmakeFlags = [
"-DBUNDLE_DEPENDENCIES=OFF"
"-DCMAKE_CXX_FLAGS='-I${lib.getDev utf8cpp}/include/utf8cpp'"
] ++ lib.optional makeAndPlay "-DMAKEANDPLAY=ON";
desktopItems = [
@ -80,8 +71,13 @@ stdenv.mkDerivation rec {
install -Dm755 VVVVVV $out/bin/${pname}
install -Dm644 "$src/desktop_version/icon.ico" "$out/share/pixmaps/VVVVVV.png"
cp -r "$src/desktop_version/fonts/" "$out/share/"
cp -r "$src/desktop_version/lang/" "$out/share/"
wrapProgram $out/bin/${pname} --add-flags "-assets ${dataZip}"
wrapProgram $out/bin/${pname} \
--add-flags "-assets ${dataZip}" \
--add-flags "-langdir $out/share/lang" \
--add-flags "-fontsdir $out/share/fonts"
runHook postInstall
'';

View File

@ -1,13 +0,0 @@
diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt
index 7405c122..68ba40e3 100644
--- a/desktop_version/CMakeLists.txt
+++ b/desktop_version/CMakeLists.txt
@@ -296,7 +296,7 @@ if(BUNDLE_DEPENDENCIES)
else()
find_package(utf8cpp CONFIG)
- target_link_libraries(VVVVVV physfs tinyxml2 utf8cpp lodepng-static)
+ target_link_libraries(VVVVVV physfs tinyxml2 utf8cpp::utf8cpp lodepng-static)
endif()
# SDL2 Dependency (Detection pulled from FAudio)