2020-01-21 16:13:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nudoku";
|
2020-11-22 05:10:07 +00:00
|
|
|
version = "2.1.0";
|
2020-01-21 16:13:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jubalh";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-22 05:10:07 +00:00
|
|
|
sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m";
|
2020-01-21 16:13:02 +00:00
|
|
|
};
|
|
|
|
|
2020-01-21 17:11:43 +00:00
|
|
|
# Allow gettext 0.20
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace 0.19 0.20
|
|
|
|
'';
|
|
|
|
|
2020-01-21 16:13:02 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gettext ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2020-01-21 16:17:50 +00:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
|
|
|
|
|
2020-01-21 16:13:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An ncurses based sudoku game";
|
|
|
|
homepage = "http://jubalh.github.io/nudoku/";
|
|
|
|
license = licenses.gpl3;
|
2020-11-25 04:20:00 +00:00
|
|
|
platforms = platforms.all;
|
2020-01-21 16:13:02 +00:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|