xboard: refactor
This commit is contained in:
parent
c6bfa80a26
commit
871e21511d
|
@ -1,35 +1,57 @@
|
||||||
{lib, stdenv, fetchurl, libX11, xorgproto, libXt, libXaw, libSM, libICE, libXmu
|
{ lib
|
||||||
, libXext, gnuchess, texinfo, libXpm, pkg-config, librsvg, cairo, pango
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, libX11
|
||||||
|
, xorgproto
|
||||||
|
, libXt
|
||||||
|
, libXaw
|
||||||
|
, libSM
|
||||||
|
, libICE
|
||||||
|
, libXmu
|
||||||
|
, libXext
|
||||||
|
, gnuchess
|
||||||
|
, texinfo
|
||||||
|
, libXpm
|
||||||
|
, pkg-config
|
||||||
|
, librsvg
|
||||||
|
, cairo
|
||||||
|
, pango
|
||||||
, gtk2
|
, gtk2
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
s = # Generated upstream information
|
stdenv.mkDerivation rec {
|
||||||
rec {
|
pname = "xboard";
|
||||||
baseName="xboard";
|
version = "4.9.1";
|
||||||
version="4.9.1";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
hash="1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib";
|
|
||||||
url="https://ftp.gnu.org/gnu/xboard/xboard-4.9.1.tar.gz";
|
|
||||||
sha256="1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib";
|
|
||||||
};
|
|
||||||
buildInputs = [
|
|
||||||
libX11 xorgproto libXt libXaw libSM libICE libXmu
|
|
||||||
libXext gnuchess texinfo libXpm pkg-config librsvg
|
|
||||||
cairo pango gtk2
|
|
||||||
];
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (s) name version;
|
|
||||||
inherit buildInputs;
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
url = "mirror://gnu/xboard/xboard-${version}.tar.gz";
|
||||||
|
sha256 = "sha256-Ky5T6EKK2bbo3IpVs6UYM4GRGk2uLABy+pYpa7sZcNY=";
|
||||||
};
|
};
|
||||||
meta = {
|
|
||||||
inherit (s) version;
|
buildInputs = [
|
||||||
|
libX11
|
||||||
|
xorgproto
|
||||||
|
libXt
|
||||||
|
libXaw
|
||||||
|
libSM
|
||||||
|
libICE
|
||||||
|
libXmu
|
||||||
|
libXext
|
||||||
|
gnuchess
|
||||||
|
texinfo
|
||||||
|
libXpm
|
||||||
|
pkg-config
|
||||||
|
librsvg
|
||||||
|
cairo
|
||||||
|
pango
|
||||||
|
gtk2
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "GUI for chess engines";
|
description = "GUI for chess engines";
|
||||||
homepage = "https://www.gnu.org/software/xboard/";
|
homepage = "https://www.gnu.org/software/xboard/";
|
||||||
maintainers = [lib.maintainers.raskin];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = lib.licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
url https://ftp.gnu.org/gnu/xboard/
|
|
Loading…
Reference in a new issue