1 { lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
4 pname = "90secondportraits";
8 url = "http://tangramgames.dk/img/thumb/90secondportraits.png";
9 sha256 = "13k6cq8s7jw77j81xfa5ri41445m778q6iqbfplhwdpja03c6faw";
12 desktopItem = makeDesktopItem {
13 name = "90secondportraits";
16 comment = "A silly speed painting game";
17 desktopName = "90 Second Portraits";
18 genericName = "90secondportraits";
19 categories = [ "Game" ];
25 name = "${pname}-${version}";
28 url = "https://github.com/SimonLarsen/90-Second-Portraits/releases/download/${version}/${pname}-${version}.love";
29 sha256 = "0jj3k953r6vb02212gqcgqpb4ima87gnqgls43jmylxq2mcm33h5";
32 nativeBuildInputs = [ makeWrapper ];
33 buildInputs = [ lua love ];
40 mkdir -p $out/share/games/lovegames
42 cp -v $src $out/share/games/lovegames/${pname}.love
44 makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love
46 chmod +x $out/bin/${pname}
47 mkdir -p $out/share/applications
48 ln -s ${desktopItem}/share/applications/* $out/share/applications/
52 description = "A silly speed painting game";
53 maintainers = with maintainers; [ leenaars ];
54 platforms = platforms.linux;
55 license = licenses.free;
56 downloadPage = "http://tangramgames.dk/games/90secondportraits";