Skip to content

Instantly share code, notes, and snippets.

@mehlon
Last active December 24, 2019 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehlon/cc70ea32d6bceb5cc97a6cff087a123a to your computer and use it in GitHub Desktop.
Save mehlon/cc70ea32d6bceb5cc97a6cff087a123a to your computer and use it in GitHub Desktop.
{stdenv, fetchgit, makeWrapper, git, gnumake, gcc, cmake, fetchzip, sfml, zlib, lua5}:
stdenv.mkDerivation rec {
pname = "openhexagon";
version = "2.0";
#fetchFromGitHub
src = fetchgit {
#leaveDotGit = true;
fetchSubmodules = true;
#deepClone = true;
url = "https://github.com/mehlon/SSVOpenHexagon";
rev = "a6abf3bcf41b4f6821c53f92a86f9b8c00ecbaad";
sha256 = "0jkndf6gncv7a3bbm3v2ycx68s0hm9fbzxrd7z7pj6h3fwbvajq7";
};
buildInputs = [gnumake git cmake sfml lua5 zlib];
#unpackPhase = "";
#patchPhase = "";
buildPhase = "
ls
cmake
echo `pwd` and $src; make -j8
cp ./SSVOpenHexagon $src/_RELEASE/openhexagon
";
installPhase = ''
mkdir -p $out/bin
cp _RELEASE/openhexagon $out/bin/
wrapProgram $out/bin/openhexagon --run "cd $out/share/openhexagon"
mkdir -p $out/share/openhexagon/data
cp -r $data/* $out/share/openhexagon/data
'';
meta = {
description = ''Clone of Super Hexagon'';
homepage = https://github.com/SuperV1234/SSVOpenHexagon;
# license = stdenv.lib.licenses.gpl2;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment