git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13539 from leenaars/orthorobot

orthorobot: init at 1.0

commitc5f40000401020b6ce21090d660d47200c33897e authorChristoph Hrdinka <c.github@hrdinka.at> dateSat 5 Mar 2016, 13:42 (11 years ago) parentbcafef2390effe
2 files changed+65
pkgs/games/orthorobot/default.nix+63 pkgs/top-level/all-packages.nix+2
pkgs/games/orthorobot/default.nixnew file+63
@@ -0,0 +1,63 @@
1+{ stdenv, fetchurl, unzip, love, lua, makeWrapper, makeDesktopItem }:
2+
3+let
4+ pname = "orthorobot";
5+ version = "1.0";
6+
7+ icon = fetchurl {
8+ url = "http://stabyourself.net/images/screenshots/orthorobot-5.png";
9+ sha256 = "13fa4divdqz4vpdij1lcs5kf6w2c4jm3cc9q6bz5h7lkng31jzi6";
10+ };
11+
12+ desktopItem = makeDesktopItem {
13+ name = "orthorobot";
14+ exec = "${pname}";
15+ icon = "${icon}";
16+ comment = "Robot game";
17+ desktopName = "Orthorobot";
18+ genericName = "orthorobot";
19+ categories = "Game;";
20+ };
21+
22+in
23+
24+stdenv.mkDerivation rec {
25+ name = "${pname}-${version}";
26+
27+ src = fetchurl {
28+ url = "http://stabyourself.net/dl.php?file=${pname}/${pname}-source.zip";
29+ sha256 = "023nc3zwjkbmy4c8w6mfg39mg69zpqqr2gzlmp4fpydrjas70kbl";
30+ };
31+
32+ nativeBuildInputs = [ makeWrapper unzip ];
33+ buildInputs = [ lua love ];
34+
35+ phases = [ "unpackPhase" "installPhase" ];
36+
37+ unpackPhase = ''
38+ unzip -j $src
39+ '';
40+
41+ installPhase =
42+ ''
43+ mkdir -p $out/bin
44+ mkdir -p $out/share/games/lovegames
45+
46+ cp -v ./*.love $out/share/games/lovegames/${pname}.love
47+
48+ makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
49+
50+ chmod +x $out/bin/${pname}
51+ mkdir -p $out/share/applications
52+ ln -s ${desktopItem}/share/applications/* $out/share/applications/
53+ '';
54+
55+ meta = with stdenv.lib; {
56+ description = "Recharge the robot";
57+ maintainers = with maintainers; [ leenaars ];
58+ platforms = platforms.linux;
59+ license = licenses.free;
60+ downloadPage = http://stabyourself.net/orthorobot/;
61+ };
62+
63+}
pkgs/top-level/all-packages.nix+2
@@ -14633,6 +14633,8 @@ let
1463314633
1463414634 openxcom = callPackage ../games/openxcom { };
1463514635
14636+ orthorobot = callPackage ../games/orthorobot { love = love_0_7; };
14637+
1463614638 performous = callPackage ../games/performous { };
1463714639
1463814640 pingus = callPackage ../games/pingus {};