18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
23 owner = "TerryCavanagh";
26 hash = "sha256-HosrYBzx1Kh7rQIH7IAoOTPgpm4lgYOVR3MWtWX3usQ=";
27 fetchSubmodules = true;
31 url = "https://thelettervsixtim.es/makeandplay/data.zip";
33 hash = "sha256-x2eAlZT2Ry2p9WE252ZX44ZA1YQWSkYRIlCsYpPswOo=";
34 meta.license = lib.licenses.unfree;
48 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation IOKit ];
50 cmakeDir = "../desktop_version";
53 "-DBUNDLE_DEPENDENCIES=OFF"
54 ] ++ lib.optional makeAndPlay "-DMAKEANDPLAY=ON";
60 desktopName = "VVVVVV";
61 comment = meta.description;
65 categories = [ "Game" ];
72 install -Dm755 VVVVVV $out/bin/vvvvvv
73 install -Dm644 "$src/desktop_version/icon.ico" "$out/share/pixmaps/VVVVVV.png"
74 cp -r "$src/desktop_version/fonts/" "$out/share/"
75 cp -r "$src/desktop_version/lang/" "$out/share/"
77 wrapProgram $out/bin/vvvvvv \
78 --add-flags "-assets ${dataZip}" \
79 --add-flags "-langdir $out/share/lang" \
80 --add-flags "-fontsdir $out/share/fonts"
86 description = "A retro-styled platform game" + lib.optionalString makeAndPlay " (redistributable, without original levels)";
88 VVVVVV is a platform game all about exploring one simple mechanical
89 idea - what if you reversed gravity instead of jumping?
90 '' + lib.optionalString makeAndPlay ''
91 (Redistributable version, doesn't include the original levels.)
93 homepage = "https://thelettervsixtim.es";
94 changelog = "https://github.com/TerryCavanagh/VVVVVV/releases/tag/${src.rev}";
95 license = licenses.unfree;
97 platforms = platforms.unix;