Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "n2048"; 5 version = "0.1"; 6 src = fetchurl { 7 url = "http://www.dettus.net/n2048/n2048_v${version}.tar.gz"; 8 sha256 = "184z2rr0rnj4p740qb4mzqr6kgd76ynb5gw9bj8hrfshcxdcg1kk"; 9 }; 10 buildInputs = [ 11 ncurses 12 ]; 13 makeFlags = [ 14 "DESTDIR=$(out)" 15 ]; 16 preInstall = '' 17 mkdir -p "$out"/{share/man,bin} 18 ''; 19 meta = with lib; { 20 description = "Console implementation of 2048 game"; 21 license = licenses.bsd2; 22 maintainers = with maintainers; [ raskin ]; 23 platforms = platforms.linux; 24 homepage = "http://www.dettus.net/n2048/"; 25 }; 26}