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