2021-11-05 10:27:44 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gettext, ncurses }:
|
2020-01-21 17:13:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nudoku";
|
2020-11-22 06:10:07 +01:00
|
|
|
version = "2.1.0";
|
2020-01-21 17:13:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jubalh";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-22 06:10:07 +01:00
|
|
|
sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m";
|
2020-01-21 17:13:02 +01:00
|
|
|
};
|
|
|
|
|
2021-11-05 10:27:44 +01:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for ncurses-6.3
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/jubalh/nudoku/commit/93899a0fd72e04b9f257e5f54af53466106b5959.patch";
|
|
|
|
sha256 = "1h3za0dnx8fk3vshql5mhcici8aw8j0vr7ra81p3r1rii4c479lm";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-01-21 18:11:43 +01:00
|
|
|
# Allow gettext 0.20
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace 0.19 0.20
|
|
|
|
'';
|
|
|
|
|
2021-01-17 03:04:36 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config gettext ];
|
2020-01-21 17:13:02 +01:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
|
2020-01-21 17:17:50 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-21 17:13:02 +01:00
|
|
|
description = "An ncurses based sudoku game";
|
|
|
|
homepage = "http://jubalh.github.io/nudoku/";
|
|
|
|
license = licenses.gpl3;
|
2020-11-25 05:20:00 +01:00
|
|
|
platforms = platforms.all;
|
2020-01-21 17:13:02 +01:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|