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
|
let
|
||||||
fetchurl = a.fetchurl;
|
fetchurl = a.fetchurl;
|
||||||
|
|
||||||
version = a.lib.attrByPath ["version"] "4.2.7" a;
|
|
||||||
buildInputs = with a; [
|
buildInputs = with a; [
|
||||||
libX11 xproto libXt libXaw libSM libICE libXmu
|
libX11 xproto libXt libXaw libSM libICE libXmu
|
||||||
libXext gnuchess
|
libXext gnuchess texinfo libXpm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
s = import ./src-for-default.nix;
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ftp.gnu.org/gnu/xboard/xboard-${version}.tar.gz";
|
inherit(s) url;
|
||||||
sha256 = "0fwdzcav8shvzi7djphrlav29vwxnx63spzsldlhrglr7qpg28av";
|
sha256 = s.hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
@ -25,7 +26,7 @@ rec {
|
||||||
sed -e '/SECOND_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"];
|
'') ["doUnpack" "minInit"];
|
||||||
|
|
||||||
name = "xboard-" + version;
|
inherit(s) name;
|
||||||
meta = {
|
meta = {
|
||||||
description = "XBoard - a chess board compatible with GNU Chess";
|
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) {
|
xboard = builderDefsPackage (import ../games/xboard) {
|
||||||
inherit (xlibs) libX11 xproto libXt libXaw libSM
|
inherit (xlibs) libX11 xproto libXt libXaw libSM
|
||||||
libICE libXmu libXext;
|
libICE libXmu libXext libXpm;
|
||||||
inherit gnuchess;
|
inherit gnuchess texinfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
xsokoban = builderDefsPackage (import ../games/xsokoban) {
|
xsokoban = builderDefsPackage (import ../games/xsokoban) {
|
||||||
|
|
Loading…
Reference in a new issue