2009-12-10 07:55:12 +01:00
|
|
|
a:
|
2009-01-31 21:09:54 +01:00
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
|
|
|
buildInputs = with a; [
|
|
|
|
libX11 xproto libXt libXaw libSM libICE libXmu
|
2009-12-10 07:55:12 +01:00
|
|
|
libXext gnuchess texinfo libXpm
|
2009-01-31 21:09:54 +01:00
|
|
|
];
|
2009-12-10 07:55:12 +01:00
|
|
|
|
|
|
|
s = import ./src-for-default.nix;
|
2009-01-31 21:09:54 +01:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2009-12-10 07:55:12 +01:00
|
|
|
inherit(s) url;
|
|
|
|
sha256 = s.hash;
|
2009-01-31 21:09:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = a.fullDepEntry(''
|
2009-01-31 21:09:54 +01:00
|
|
|
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"];
|
|
|
|
|
2009-12-10 07:55:12 +01:00
|
|
|
inherit(s) name;
|
2009-01-31 21:09:54 +01:00
|
|
|
meta = {
|
|
|
|
description = "XBoard - a chess board compatible with GNU Chess";
|
|
|
|
};
|
|
|
|
}
|