Update xboard

svn path=/nixpkgs/trunk/; revision=18870
This commit is contained in:
Michael Raskin 2009-12-10 06:55:12 +00:00
parent b2c9e50203
commit 3871c1ebd2
4 changed files with 22 additions and 8 deletions

View file

@ -1,17 +1,18 @@
a :
a:
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "4.2.7" a;
buildInputs = with a; [
libX11 xproto libXt libXaw libSM libICE libXmu
libXext gnuchess
libXext gnuchess texinfo libXpm
];
s = import ./src-for-default.nix;
in
rec {
src = fetchurl {
url = "http://ftp.gnu.org/gnu/xboard/xboard-${version}.tar.gz";
sha256 = "0fwdzcav8shvzi7djphrlav29vwxnx63spzsldlhrglr7qpg28av";
inherit(s) url;
sha256 = s.hash;
};
inherit buildInputs;
@ -25,7 +26,7 @@ rec {
sed -e '/SECOND_CHESS_PROGRAM/s@gnuchessx@${a.gnuchess}/bin/gnuchessx@' -i xboard.h
'') ["doUnpack" "minInit"];
name = "xboard-" + version;
inherit(s) name;
meta = {
description = "XBoard - a chess board compatible with GNU Chess";
};

View file

@ -0,0 +1,9 @@
rec {
version="4.4.2";
name="xboard-4.4.2";
hash="1ihg39nnwp90w410rzwxj9layadavz08gc9m2b1jg5z5c6ky28zp";
url="http://ftp.gnu.org/gnu/xboard/xboard-${version}.tar.gz";
advertisedUrl="http://ftp.gnu.org/gnu/xboard/xboard-4.4.2.tar.gz";
}

View file

@ -0,0 +1,4 @@
{
downloadPage = "http://ftp.gnu.org/gnu/xboard/?C=T,M;O=D";
baseName = "xboard";
}

View file

@ -8023,8 +8023,8 @@ let
xboard = builderDefsPackage (import ../games/xboard) {
inherit (xlibs) libX11 xproto libXt libXaw libSM
libICE libXmu libXext;
inherit gnuchess;
libICE libXmu libXext libXpm;
inherit gnuchess texinfo;
};
xsokoban = builderDefsPackage (import ../games/xsokoban) {