1{ lib
2, stdenv
3, fetchurl
4, fetchpatch
5, zlib
6}:
7
8stdenv.mkDerivation rec {
9 pname = "gnushogi";
10 version = "1.4.2";
11
12 src = fetchurl {
13 url = "mirror://gnu/gnushogi/${pname}-${version}.tar.gz";
14 hash = "sha256-HsxIqGYwPGNlJVKzJdaF5+9emJMkQIApGmHZZQXVKyk=";
15 };
16
17 patches = [
18 (fetchpatch {
19 url = "https://sources.debian.org/data/main/g/gnushogi/1.4.2-7/debian/patches/01-make-dont-ignore";
20 hash = "sha256-Aw0zfH+wkj+rQQzKIn6bSilP76YIO27FwJ8n1UzG6ow=";
21 })
22 (fetchpatch {
23 url = "https://sources.debian.org/data/main/g/gnushogi/1.4.2-7/debian/patches/globals";
24 hash = "sha256-wZJBPMYSz4n1kOyLmR9QOp70650R9xXQUWD5hvaMRok=";
25 })
26 ];
27
28 buildInputs = [ zlib ];
29
30 meta = with lib; {
31 description = "GNU implementation of Shogi, also known as Japanese Chess";
32 homepage = "https://www.gnu.org/software/gnushogi/";
33 license = licenses.gpl3;
34 maintainers = [ maintainers.ciil ];
35 platforms = platforms.unix;
36 };
37}