1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/games/2048-in-terminal/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

34 lines
745 B
Nix

{ stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
pname = "2048-in-terminal";
version = "2017-11-29";
src = fetchFromGitHub {
sha256 = "1cqv5z1i5zcrvj0w6pdfnnff8m6kjndqxwkwsw5ma9jz503bmyc6";
rev = "4e525066b0ef3442e92d2ba8dd373bdc205ece28";
repo = "2048-in-terminal";
owner = "alewmoose";
};
buildInputs = [ ncurses ];
prePatch = ''
sed -i '1i#include <fcntl.h>\n' save.c
'';
enableParallelBuilding = true;
preInstall = ''
mkdir -p $out/bin
'';
installFlags = [ "DESTDIR=$(out)/bin" ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Animated console version of the 2048 game";
license = licenses.mit;
platforms = platforms.linux;
};
}