nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at litex 49 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, ncurses 5}: 6 7stdenv.mkDerivation rec { 8 pname = "npush"; 9 version = "0.7"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/project/npush/${pname}/${version}/${pname}-${version}.tgz"; 13 hash = "sha256-8hbSsyeehzd4T3fUhDyebyI/oTHOHr3a8ArYAquivNk="; 14 }; 15 16 outputs = [ "out" "doc" ]; 17 18 buildInputs = [ 19 ncurses 20 ]; 21 22 dontConfigure = true; 23 24 makeFlags = [ 25 "CC=${stdenv.cc.targetPrefix}c++" 26 ]; 27 env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 28 29 installPhase = '' 30 runHook preInstall 31 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/ 37 38 runHook postInstall 39 ''; 40 41 meta = with lib; { 42 broken = stdenv.isDarwin; 43 homepage = "https://npush.sourceforge.net/"; 44 description = "A Sokoban-like game"; 45 license = licenses.gpl2Plus; 46 maintainers = with maintainers; [ AndersonTorres ]; 47 platforms = with platforms; unix; 48 }; 49}