mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
XBoard: update to 4.6.2
This commit is contained in:
parent
9ddd1cc78b
commit
232fedb1c7
@ -1,33 +1,32 @@
|
||||
a:
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
buildInputs = with a; [
|
||||
{stdenv, fetchurl, libX11, xproto, libXt, libXaw, libSM, libICE, libXmu
|
||||
, libXext, gnuchess, texinfo, libXpm
|
||||
}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="xboard";
|
||||
version="4.6.2";
|
||||
name="${baseName}-${version}";
|
||||
hash="1pw90fh1crf0nkqyql54z728vn2093hwdh2v5i5703z9qv9g4mrf";
|
||||
url="http://ftp.gnu.org/gnu/xboard/xboard-4.6.2.tar.gz";
|
||||
sha256="1pw90fh1crf0nkqyql54z728vn2093hwdh2v5i5703z9qv9g4mrf";
|
||||
};
|
||||
buildInputs = [
|
||||
libX11 xproto libXt libXaw libSM libICE libXmu
|
||||
libXext gnuchess texinfo libXpm
|
||||
];
|
||||
|
||||
s = import ./src-for-default.nix;
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
inherit(s) url;
|
||||
sha256 = s.hash;
|
||||
};
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"];
|
||||
|
||||
preBuild = a.fullDepEntry(''
|
||||
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"];
|
||||
|
||||
inherit(s) name;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
meta = {
|
||||
description = "XBoard - a chess board compatible with GNU Chess";
|
||||
inherit (s) version;
|
||||
description = ''GUI for chess engines'';
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
};
|
||||
}
|
||||
|
1
pkgs/games/xboard/default.upstream
Normal file
1
pkgs/games/xboard/default.upstream
Normal file
@ -0,0 +1 @@
|
||||
url http://ftp.gnu.org/gnu/xboard/
|
@ -1,9 +0,0 @@
|
||||
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";
|
||||
|
||||
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
downloadPage = "http://ftp.gnu.org/gnu/xboard/?C=T,M;O=D";
|
||||
baseName = "xboard";
|
||||
}
|
@ -8352,11 +8352,7 @@ let
|
||||
|
||||
worldofgoo = callPackage ../games/worldofgoo { };
|
||||
|
||||
xboard = builderDefsPackage (import ../games/xboard) {
|
||||
inherit (xlibs) libX11 xproto libXt libXaw libSM
|
||||
libICE libXmu libXext libXpm;
|
||||
inherit gnuchess texinfo;
|
||||
};
|
||||
xboard = callPackage ../games/xboard { };
|
||||
|
||||
xconq = callPackage ../games/xconq {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user