audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / n2 / n2048 / package.nix
blobe28b685d9f5227fc8bcc34a718955a67f972e349
2   lib,
3   stdenv,
4   fetchurl,
5   ncurses,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "n2048";
10   version = "0.1";
12   src = fetchurl {
13     url = "http://www.dettus.net/n2048/n2048_v${finalAttrs.version}.tar.gz";
14     hash = "sha256-c4bHWmdQuwyRXIm/sqw3p71pMv6VLAzIuUTaDHIWn6A=";
15   };
17   env = {
18     NIX_CFLAGS_COMPILE = toString [
19       "-Wno-error=implicit-function-declaration"
20     ];
21   };
23   buildInputs = [
24     ncurses
25   ];
27   makeFlags = [
28     "DESTDIR=$(out)"
29   ];
31   preInstall = ''
32     mkdir -p "$out"/{share/man,bin}
33   '';
35   meta = {
36     description = "Console implementation of 2048 game";
37     mainProgram = "n2048";
38     license = lib.licenses.bsd2;
39     maintainers = with lib.maintainers; [ raskin ];
40     platforms = lib.platforms.linux;
41     homepage = "http://www.dettus.net/n2048/";
42   };