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