1 { lib, stdenv, fetchurl, fetchFromGitHub, zip, love, lua, makeWrapper, makeDesktopItem }:
2 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
7 owner = "Stabyourself";
10 sha256 = "1ca6hvd890kxmamsmsfiqzw15ngsvb4lkihjb6kabgmss61a6s5p";
14 url = "http://stabyourself.net/images/screenshots/orthorobot-5.png";
15 sha256 = "13fa4divdqz4vpdij1lcs5kf6w2c4jm3cc9q6bz5h7lkng31jzi6";
18 desktopItem = makeDesktopItem {
22 comment = "Robot game";
23 desktopName = "Orthorobot";
24 genericName = "orthorobot";
25 categories = [ "Game" ];
28 nativeBuildInputs = [ makeWrapper ];
29 buildInputs = [ lua love zip ];
34 mkdir -p $out/bin $out/share/games/lovegames $out/share/applications
35 zip -9 -r ${pname}.love ./*
36 mv ${pname}.love $out/share/games/lovegames/${pname}.love
37 makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
38 ln -s ${desktopItem}/share/applications/* $out/share/applications/
39 chmod +x $out/bin/${pname}
43 description = "Recharge the robot";
44 maintainers = with maintainers; [ leenaars ];
45 platforms = platforms.linux;
46 license = licenses.free;
47 downloadPage = "http://stabyourself.net/orthorobot/";