2022-01-16 20:20:36 +01:00
|
|
|
{ lib, stdenv, fetchurl, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "n2048";
|
|
|
|
version = "0.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.dettus.net/n2048/n2048_v${version}.tar.gz";
|
2014-11-23 20:50:40 +01:00
|
|
|
sha256 = "184z2rr0rnj4p740qb4mzqr6kgd76ynb5gw9bj8hrfshcxdcg1kk";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
makeFlags = [
|
2021-01-24 10:19:10 +01:00
|
|
|
"DESTDIR=$(out)"
|
2014-11-23 20:50:40 +01:00
|
|
|
];
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out"/{share/man,bin}
|
|
|
|
'';
|
2022-01-16 20:20:36 +01:00
|
|
|
meta = with lib; {
|
2021-01-24 10:19:10 +01:00
|
|
|
description = "Console implementation of 2048 game";
|
2022-01-16 20:20:36 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.dettus.net/n2048/";
|
2014-11-23 20:50:40 +01:00
|
|
|
};
|
|
|
|
}
|