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