emscripten: 3.1.64 -> 3.1.73 (#343743)
[NixPkgs.git] / pkgs / games / npush / default.nix
blobe3d199c7fa87bdccac8e21786a3d436b9cc81e44
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   env.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.hostPlatform.isDarwin;
43     homepage = "https://npush.sourceforge.net/";
44     description = "Sokoban-like game";
45     mainProgram = "npush";
46     license = licenses.gpl2Plus;
47     maintainers = with maintainers; [ AndersonTorres ];
48     platforms = with platforms; unix;
49   };