python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / 90secondportraits / default.nix
blob1cf7829cfcd047f6c9d446f96b73941cf26264a8
1 { lib, stdenv, fetchurl, love, lua, makeWrapper, makeDesktopItem }:
3 let
4   pname = "90secondportraits";
5   version = "1.01b";
7   icon = fetchurl {
8     url = "http://tangramgames.dk/img/thumb/90secondportraits.png";
9     sha256 = "13k6cq8s7jw77j81xfa5ri41445m778q6iqbfplhwdpja03c6faw";
10   };
12   desktopItem = makeDesktopItem {
13     name = "90secondportraits";
14     exec = pname;
15     icon = icon;
16     comment = "A silly speed painting game";
17     desktopName = "90 Second Portraits";
18     genericName = "90secondportraits";
19     categories = [ "Game" ];
20   };
24 stdenv.mkDerivation {
25   name = "${pname}-${version}";
27   src = fetchurl {
28     url = "https://github.com/SimonLarsen/90-Second-Portraits/releases/download/${version}/${pname}-${version}.love";
29     sha256 = "0jj3k953r6vb02212gqcgqpb4ima87gnqgls43jmylxq2mcm33h5";
30   };
32   nativeBuildInputs = [ makeWrapper ];
33   buildInputs = [ lua love ];
35   dontUnpack = true;
37   installPhase =
38   ''
39     mkdir -p $out/bin
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/
49   '';
51   meta = with lib; {
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";
57   };