nixpkgs/pkgs/games/xboard/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
Nix
Raw Normal View History

2021-12-19 20:57:44 +00:00
{ lib
, stdenv
, fetchurl
, fetchpatch
2021-12-19 20:57:44 +00:00
, libX11
, xorgproto
, libXt
, libXaw
, libSM
, libICE
, libXmu
, libXext
, gnuchess
, texinfo
, libXpm
, pkg-config
, librsvg
, cairo
, pango
2016-05-15 20:12:35 +00:00
, gtk2
2012-12-12 05:29:49 +00:00
}:
2021-12-19 20:57:44 +00:00
stdenv.mkDerivation rec {
pname = "xboard";
version = "4.9.1";
src = fetchurl {
url = "mirror://gnu/xboard/xboard-${version}.tar.gz";
sha256 = "sha256-Ky5T6EKK2bbo3IpVs6UYM4GRGk2uLABy+pYpa7sZcNY=";
2012-12-12 05:29:49 +00:00
};
2021-12-19 20:57:44 +00:00
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchain support:
# https://savannah.gnu.org/patch/index.php?10211
(fetchpatch {
name = "fno-common.patch";
url = "https://savannah.gnu.org/patch/download.php?file_id=53275";
sha256 = "sha256-ZOo9jAy1plFjhC5HXJQvXL+Zf7FL14asV3G4AwfgqTY=";
})
];
nativeBuildInputs = [ pkg-config ];
2012-12-12 05:29:49 +00:00
buildInputs = [
2021-12-19 20:57:44 +00:00
libX11
xorgproto
libXt
libXaw
libSM
libICE
libXmu
libXext
gnuchess
texinfo
libXpm
librsvg
cairo
pango
gtk2
];
2021-12-19 20:57:44 +00:00
meta = with lib; {
description = "GUI for chess engines";
mainProgram = "xboard";
homepage = "https://www.gnu.org/software/xboard/";
2021-12-19 20:57:44 +00:00
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
license = licenses.gpl3Plus;
};
}