14 stdenv.mkDerivation rec {
15 pname = "marble-marcher-ce";
18 src = fetchFromGitHub {
19 owner = "WAUthethird";
20 repo = "Marble-Marcher-Community-Edition";
22 hash = "sha256-m5i/Q4k5S4wcojHqMYS7e1W/Ph7q/95j3oOK2xbrHSk=";
25 buildInputs = [ sfml anttweakbar glm eigen glew ];
26 nativeBuildInputs = [ cmake makeWrapper copyDesktopItems ];
27 installFlags = [ "DESTDIR=$(out)" ];
30 # the path /home/MMCE is always added to DESTDIR
31 # we change this to a more sensible path
32 # see https://github.com/WAUthethird/Marble-Marcher-Community-Edition/issues/23
33 substituteInPlace CMakeLists.txt \
34 --replace '/home/MMCE' '/share/MMCE'
39 mkdir -p $out/share/icons/
40 # The executable has to be run from the same directory the assets are in
41 makeWrapper $out/share/MMCE/MarbleMarcher $out/bin/${pname} --chdir $out/share/MMCE
42 ln -s $out/share/MMCE/images/MarbleMarcher.png $out/share/icons/${pname}.png
51 comment = meta.description;
52 categories = [ "Game" ];
57 description = "A community-developed version of the original Marble Marcher - a fractal physics game";
58 mainProgram = "marble-marcher-ce";
59 homepage = "https://michaelmoroz.itch.io/mmce";
60 license = with licenses; [
65 maintainers = with maintainers; [ rampoina ];
66 platforms = platforms.linux;