1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/games/xboard/default.nix
Michael Raskin 3871c1ebd2 Update xboard
svn path=/nixpkgs/trunk/; revision=18870
2009-12-10 06:55:12 +00:00

34 lines
776 B
Nix

a:
let
fetchurl = a.fetchurl;
buildInputs = with a; [
libX11 xproto libXt libXaw libSM libICE libXmu
libXext gnuchess texinfo libXpm
];
s = import ./src-for-default.nix;
in
rec {
src = fetchurl {
inherit(s) url;
sha256 = s.hash;
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"];
preBuild = a.fullDepEntry(''
sed -e '/FIRST_CHESS_PROGRAM/s@gnuchessx@${a.gnuchess}/bin/gnuchessx@' -i xboard.h
sed -e '/SECOND_CHESS_PROGRAM/s@gnuchessx@${a.gnuchess}/bin/gnuchessx@' -i xboard.h
'') ["doUnpack" "minInit"];
inherit(s) name;
meta = {
description = "XBoard - a chess board compatible with GNU Chess";
};
}