depot/third_party/nixpkgs/pkgs/games/nudoku/default.nix
Default email cf3f6e7a7d Project import generated by Copybara.
GitOrigin-RevId: 24eb3f87fc610f18de7076aee7c5a84ac5591e3e
2020-11-30 09:33:03 +01:00

32 lines
824 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext, ncurses }:
stdenv.mkDerivation rec {
pname = "nudoku";
version = "2.1.0";
src = fetchFromGitHub {
owner = "jubalh";
repo = pname;
rev = version;
sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m";
};
# Allow gettext 0.20
postPatch = ''
substituteInPlace configure.ac --replace 0.19 0.20
'';
nativeBuildInputs = [ autoreconfHook pkgconfig gettext ];
buildInputs = [ ncurses ];
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
meta = with stdenv.lib; {
description = "An ncurses based sudoku game";
homepage = "http://jubalh.github.io/nudoku/";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ dtzWill ];
};
}