sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / gnugo / default.nix
blob82848ab008052ba1954f6b36c9f28ef527a4d936
1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "gnugo";
5   version = "3.8";
7   src = fetchurl {
8     url = "mirror://gnu/gnugo/gnugo-${version}.tar.gz";
9     sha256 = "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s";
10   };
12   patches = [
13     # Pull patch pending upstream inclusion for -fno-common toolchain support:
14     #   https://savannah.gnu.org/patch/index.php?10208
15     (fetchpatch {
16       name = "fno-common.patch";
17       url = "https://savannah.gnu.org/patch/download.php?file_id=53240";
18       sha256 = "0s96qvmx244vq5pv2nzf7x863kq2y5skzjhbpyzaajfkldbj0sw4";
19     })
20   ];
22   hardeningDisable = [ "format" ];
24   meta = {
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;
30   };