diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-07 19:29:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 19:29:11 +0200 |
commit | 600379c2bb665872e66a32ab06b35f20d5f0e17e (patch) | |
tree | c4224339618fd180945fb2177c90c84898540f23 /pkgs/games | |
parent | 26ae083cc9325a5e6a2e7391ff8293e82869978b (diff) | |
parent | 14405dccb71bc834569ae79df568b00d95a06104 (diff) |
Merge pull request #300093 from SuperSamus/vvvvvv-update
vvvvvv: 2.4 -> 2.4.1
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/vvvvvv/default.nix | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/pkgs/games/vvvvvv/default.nix b/pkgs/games/vvvvvv/default.nix deleted file mode 100644 index 07f98d94f3e1..000000000000 --- a/pkgs/games/vvvvvv/default.nix +++ /dev/null @@ -1,98 +0,0 @@ -{ stdenv -, lib -, fetchFromGitHub -, fetchurl -, cmake -, makeWrapper -, copyDesktopItems -, makeDesktopItem -, faudio -, physfs -, SDL2 -, tinyxml-2 -, Foundation -, IOKit -, makeAndPlay ? false -}: - -stdenv.mkDerivation rec { - pname = "vvvvvv"; - version = "2.4"; - - src = fetchFromGitHub { - owner = "TerryCavanagh"; - repo = "VVVVVV"; - rev = version; - sha256 = "sha256-AecaEWjWELRnCzTdMz+rDXVKnpPF+LNmxiKqMwQMm4k="; - fetchSubmodules = true; - }; - - dataZip = fetchurl { - url = "https://thelettervsixtim.es/makeandplay/data.zip"; - name = "data.zip"; - sha256 = "sha256-x2eAlZT2Ry2p9WE252ZX44ZA1YQWSkYRIlCsYpPswOo="; - meta.license = lib.licenses.unfree; - }; - - nativeBuildInputs = [ - cmake - makeWrapper - copyDesktopItems - ]; - - buildInputs = [ - faudio - physfs - SDL2 - tinyxml-2 - ] ++ lib.optionals stdenv.isDarwin [ Foundation IOKit ]; - - cmakeDir = "../desktop_version"; - - cmakeFlags = [ - "-DBUNDLE_DEPENDENCIES=OFF" - ] ++ lib.optional makeAndPlay "-DMAKEANDPLAY=ON"; - - desktopItems = [ - (makeDesktopItem { - type = "Application"; - name = "VVVVVV"; - desktopName = "VVVVVV"; - comment = meta.description; - exec = pname; - icon = "VVVVVV"; - terminal = false; - categories = [ "Game" ]; - }) - ]; - - installPhase = '' - runHook preInstall - - 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}" \ - --add-flags "-langdir $out/share/lang" \ - --add-flags "-fontsdir $out/share/fonts" - - runHook postInstall - ''; - - meta = with lib; { - description = "A retro-styled platform game" + lib.optionalString makeAndPlay " (redistributable, without original levels)"; - longDescription = '' - VVVVVV is a platform game all about exploring one simple mechanical - idea - what if you reversed gravity instead of jumping? - '' + lib.optionalString makeAndPlay '' - (Redistributable version, doesn't include the original levels.) - ''; - homepage = "https://thelettervsixtim.es"; - license = licenses.unfree; - maintainers = with maintainers; [ martfont ]; - platforms = platforms.unix; - }; -} |