1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/gnugo/gnugo-${version}.tar.gz";
9 sha256 = "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s";
13 # Pull patch pending upstream inclusion for -fno-common toolchain support:
14 # https://savannah.gnu.org/patch/index.php?10208
16 name = "fno-common.patch";
17 url = "https://savannah.gnu.org/patch/download.php?file_id=53240";
18 sha256 = "0s96qvmx244vq5pv2nzf7x863kq2y5skzjhbpyzaajfkldbj0sw4";
22 hardeningDisable = [ "format" ];
25 description = "GNU Go - A computer go player";
26 mainProgram = "gnugo";
27 homepage = "https://www.gnu.org/software/gnugo/";
28 license = lib.licenses.gpl3;
29 platforms = lib.platforms.unix;