1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gettext, ncurses }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m";
15 # Pull upstream fix for ncurses-6.3
17 name = "ncurses-6.3.patch";
18 url = "https://github.com/jubalh/nudoku/commit/93899a0fd72e04b9f257e5f54af53466106b5959.patch";
19 sha256 = "1h3za0dnx8fk3vshql5mhcici8aw8j0vr7ra81p3r1rii4c479lm";
25 substituteInPlace configure.ac --replace 0.19 0.20
28 nativeBuildInputs = [ autoreconfHook pkg-config gettext ];
29 buildInputs = [ ncurses ];
31 configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
34 description = "An ncurses based sudoku game";
35 homepage = "http://jubalh.github.io/nudoku/";
36 license = licenses.gpl3;
37 platforms = platforms.all;
38 maintainers = with maintainers; [ dtzWill ];