git.iko.soy/typeable/nixpkgs
on master help sign in
orthorobot: init at unversioned
commit390effeb6e88d80cac6b140e2ec885667908a071 authorMichiel Leenaars <ml.software@leenaa.rs> dateSun 28 Feb 2016, 10:51 (11 years ago) parent02c7d65
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
@@ -14574,6 +14574,8 @@ let
1457414574
1457514575 openxcom = callPackage ../games/openxcom { };
1457614576
14577+ orthorobot = callPackage ../games/orthorobot { love = love_0_7; };
14578+
1457714579 performous = callPackage ../games/performous { };
1457814580
1457914581 pingus = callPackage ../games/pingus {};