mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
28 lines
666 B
Nix
28 lines
666 B
Nix
{ 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";
|
|
sha256 = "184z2rr0rnj4p740qb4mzqr6kgd76ynb5gw9bj8hrfshcxdcg1kk";
|
|
};
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
makeFlags = [
|
|
"DESTDIR=$(out)"
|
|
];
|
|
preInstall = ''
|
|
mkdir -p "$out"/{share/man,bin}
|
|
'';
|
|
meta = with lib; {
|
|
description = "Console implementation of 2048 game";
|
|
mainProgram = "n2048";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
homepage = "http://www.dettus.net/n2048/";
|
|
};
|
|
}
|