Merge pull request #13504 from leenaars/duckmarines

duckmarines: init at 1.0b

+61
+59
pkgs/games/duckmarines/default.nix
···
··· 1 + { stdenv, fetchurl, unzip, love, lua, makeWrapper, makeDesktopItem }: 2 + 3 + let 4 + pname = "duckmarines"; 5 + version = "1.0b"; 6 + 7 + icon = fetchurl { 8 + url = "http://tangramgames.dk/img/thumb/duckmarines.png"; 9 + sha256 = "07ypbwqcgqc5f117yxy9icix76wlybp1cmykc8f3ivdps66hl0k5"; 10 + }; 11 + 12 + desktopItem = makeDesktopItem { 13 + name = "duckmarines"; 14 + exec = "${pname}"; 15 + icon = "${icon}"; 16 + comment = "Duck-themed action puzzle video game"; 17 + desktopName = "Duck Marines"; 18 + genericName = "duckmarines"; 19 + categories = "Game;"; 20 + }; 21 + 22 + in 23 + 24 + stdenv.mkDerivation rec { 25 + name = "${pname}-${version}"; 26 + 27 + src = fetchurl { 28 + url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-1.0-love.zip"; 29 + sha256 = "0fpzbsgrhbwm1lff9gyzh6c9jigw328ngddvrj5w7qmjcm2lv6lv"; 30 + }; 31 + 32 + nativeBuildInputs = [ makeWrapper unzip ]; 33 + buildInputs = [ lua love ]; 34 + 35 + phases = [ "unpackPhase" "installPhase" ]; 36 + 37 + installPhase = 38 + '' 39 + mkdir -p $out/bin 40 + mkdir -p $out/share/games/lovegames 41 + 42 + cp -v ./${pname}-1.0.love $out/share/games/lovegames/${pname}.love 43 + 44 + makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love 45 + 46 + chmod +x $out/bin/${pname} 47 + mkdir -p $out/share/applications 48 + ln -s ${desktopItem}/share/applications/* $out/share/applications/ 49 + ''; 50 + 51 + meta = with stdenv.lib; { 52 + description = "Duck-themed action puzzle video game"; 53 + maintainers = with maintainers; [ leenaars ]; 54 + platforms = platforms.linux; 55 + license = licenses.free; 56 + downloadPage = http://tangramgames.dk/games/duckmarines; 57 + }; 58 + 59 + }
+2
pkgs/top-level/all-packages.nix
··· 14404 14405 drumkv1 = callPackage ../applications/audio/drumkv1 { }; 14406 14407 dwarf-fortress-packages = callPackage ../games/dwarf-fortress { }; 14408 14409 dwarf-fortress = dwarf-fortress-packages.dwarf-fortress.override { };
··· 14404 14405 drumkv1 = callPackage ../applications/audio/drumkv1 { }; 14406 14407 + duckmarines = callPackage ../games/duckmarines { love = love_0_9; }; 14408 + 14409 dwarf-fortress-packages = callPackage ../games/dwarf-fortress { }; 14410 14411 dwarf-fortress = dwarf-fortress-packages.dwarf-fortress.override { };