New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vvvvvv: init at 2.3-git-2020-11-22 #79068
Changes from all commits
4dbd8c5
514a302
7666983
02a8417
3332e86
b9f9877
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,65 @@ | ||||||
{ stdenv, fetchurl, fetchFromGitHub, requireFile, makeWrapper | ||||||
, SDL2, SDL2_mixer, cmake, ninja | ||||||
, Foundation | ||||||
, fullGame ? false }: | ||||||
|
||||||
let | ||||||
dataZip = if fullGame then requireFile { | ||||||
# the data file for the full game | ||||||
name = "data.zip"; | ||||||
sha256 = "1q2pzscrglmwfgdl8yj300wymwskh51iq66l4xcd0qk0q3g3rbkg"; | ||||||
message = '' | ||||||
In order to install VVVVVV, you must first download the game's | ||||||
data file (data.zip) as it is not released freely. | ||||||
Once you have downloaded the file, place it in your current | ||||||
directory, use the following command and re-run the installation: | ||||||
nix-prefetch-url file://\$PWD/data.zip | ||||||
''; | ||||||
} else fetchurl { | ||||||
# the data file for the free Make and Play edition | ||||||
url = https://thelettervsixtim.es/makeandplay/data.zip; | ||||||
name = "mapdata.zip"; | ||||||
sha256 = "1q2pzscrglmwfgdl8yj300wymwskh51iq66l4xcd0qk0q3g3rbkg"; | ||||||
}; | ||||||
|
||||||
# if the user does not own the full game, build the Make and Play edition | ||||||
flags = if fullGame then [] else [ "-DMAKEANDPLAY" ]; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
in stdenv.mkDerivation rec { | ||||||
pname = "vvvvvv"; | ||||||
version = "unstable-2020-02-09"; | ||||||
|
||||||
src = fetchFromGitHub { | ||||||
owner = "TerryCavanagh"; | ||||||
repo = "VVVVVV"; | ||||||
rev = "1b00d1260064b384f8b294d15ad5eb43f2dde22b"; | ||||||
sha256 = "0z98d95ywr30cl6jsxc6ijp2h5p6abgh44ydm5dz9x9zp5rw6zc5"; | ||||||
}; | ||||||
|
||||||
CFLAGS = flags; | ||||||
CXXFLAGS = flags; | ||||||
|
||||||
nativeBuildInputs = [ cmake ninja ]; | ||||||
buildInputs = [ | ||||||
SDL2 SDL2_mixer | ||||||
] + stdenv.lib.optionalPlatform stdenv.lib.platforms.darwin [ Foundation ]; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. optionalPlatform doesn't exist, i think you want
Suggested change
|
||||||
|
||||||
sourceRoot = "source/desktop_version"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
installPhase = '' | ||||||
install -d $out/bin | ||||||
install -t $out/bin VVVVVV | ||||||
wrapProgram $out/bin/VVVVVV --add-flags "-assets ${dataZip}" | ||||||
''; | ||||||
|
||||||
meta = with stdenv.lib; { | ||||||
description = "A retro-styled platform game"; | ||||||
longDescription = '' | ||||||
VVVVVV is a platform game all about exploring one simple mechanical | ||||||
idea - what if you reversed gravity instead of jumping? | ||||||
''; | ||||||
homepage = "https://thelettervsixtim.es"; | ||||||
license = if fullGame then licenses.unfree else licenses.unfreeRedistributable; | ||||||
maintainers = [ maintainers.dkudriavtsev ]; | ||||||
platforms = [ platforms.linux platforms.darwin ]; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this makes
Suggested change
|
||||||
}; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -24712,6 +24712,8 @@ in | |||||||||
libpng = libpng12; | ||||||||||
}; | ||||||||||
|
||||||||||
vvvvvv = callPackage ../games/vvvvvv { }; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
warmux = callPackage ../games/warmux { }; | ||||||||||
|
||||||||||
warsow-engine = callPackage ../games/warsow/engine.nix { }; | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a versioned link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data.zip
has never changed since it was first introduced in 2014. Due to compatibility and the fact that this is an 11-year-old game, it probably won't ever be changed either. (But new zips will probably be introduced.)