1 { lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
3 stdenv.mkDerivation rec {
8 url = "http://tangramgames.dk/img/thumb/duckmarines.png";
9 sha256 = "07ypbwqcgqc5f117yxy9icix76wlybp1cmykc8f3ivdps66hl0k5";
12 desktopItem = makeDesktopItem {
16 comment = "Duck-themed action puzzle video game";
17 desktopName = "Duck Marines";
18 genericName = "duckmarines";
19 categories = [ "Game" ];
23 url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-1.0c.love";
24 sha256 = "1rvgpkvi4h9zhc4fwb4knhsa789yjcx4a14fi4vqfdyybhvg5sh9";
27 nativeBuildInputs = [ makeWrapper ];
28 buildInputs = [ lua love ];
35 mkdir -p $out/share/games/lovegames
37 cp -v ${src} $out/share/games/lovegames/${pname}.love
39 makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
41 chmod +x $out/bin/${pname}
42 mkdir -p $out/share/applications
43 ln -s ${desktopItem}/share/applications/* $out/share/applications/
47 description = "Duck-themed action puzzle video game";
48 maintainers = with maintainers; [ leenaars ];
49 platforms = platforms.linux;
51 license = licenses.free;
52 downloadPage = "http://tangramgames.dk/games/duckmarines";