forked from mirrors/nixpkgs
Update xboard
svn path=/nixpkgs/trunk/; revision=18870
This commit is contained in:
parent
b2c9e50203
commit
3871c1ebd2
|
@ -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";
|
||||
};
|
||||
|
|
9
pkgs/games/xboard/src-for-default.nix
Normal file
9
pkgs/games/xboard/src-for-default.nix
Normal 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";
|
||||
|
||||
|
||||
}
|
4
pkgs/games/xboard/src-info-for-default.nix
Normal file
4
pkgs/games/xboard/src-info-for-default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
downloadPage = "http://ftp.gnu.org/gnu/xboard/?C=T,M;O=D";
|
||||
baseName = "xboard";
|
||||
}
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue