python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / npush / default.nix
blobfb7300a5f77dfaddd94ddf41023b155689716a1a
1 { lib
2 , stdenv
3 , fetchurl
4 , ncurses
5 }:
7 stdenv.mkDerivation rec {
8   pname = "npush";
9   version = "0.7";
11   src = fetchurl {
12     url = "mirror://sourceforge/project/npush/${pname}/${version}/${pname}-${version}.tgz";
13     hash = "sha256-8hbSsyeehzd4T3fUhDyebyI/oTHOHr3a8ArYAquivNk=";
14   };
16   outputs = [ "out" "doc" ];
18   buildInputs = [
19     ncurses
20   ];
22   dontConfigure = true;
24   makeFlags = [
25     "CC=${stdenv.cc.targetPrefix}c++"
26   ];
27   NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
29   installPhase = ''
30     runHook preInstall
32     mkdir -p $out/bin $out/share/npush/levels $doc/share/doc/npush
33     cp npush $out/bin/
34     cp levels/* $out/share/npush/levels
35     cp CHANGES COPYING CREDITS index.html \
36        readme.txt screenshot1.png screenshot2.png $doc/share/doc/npush/
38     runHook postInstall
39   '';
41   meta = with lib; {
42     broken = stdenv.isDarwin;
43     homepage = "http://npush.sourceforge.net/";
44     description = "A Sokoban-like game";
45     license = licenses.gpl2Plus;
46     maintainers = with maintainers; [ AndersonTorres ];
47     platforms = with platforms; unix;
48   };