2021-01-14 20:31:39 -08:00
|
|
|
{lib, stdenv, fetchurl, flex, makeWrapper}:
|
2012-12-11 21:36:14 -08:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="gnuchess";
|
2020-05-31 10:23:58 -07:00
|
|
|
version="6.2.7";
|
2012-12-11 21:36:14 -08:00
|
|
|
name="${baseName}-${version}";
|
2015-10-19 02:29:15 -07:00
|
|
|
url="mirror://gnu/chess/${name}.tar.gz";
|
2020-05-31 10:23:58 -07:00
|
|
|
sha256="0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5";
|
2012-12-11 21:36:14 -08:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2009-01-31 12:09:54 -08:00
|
|
|
flex
|
|
|
|
];
|
|
|
|
in
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2012-12-11 21:36:14 -08:00
|
|
|
inherit (s) name version;
|
2009-01-31 12:09:54 -08:00
|
|
|
src = fetchurl {
|
2012-12-11 21:36:14 -08:00
|
|
|
inherit (s) url sha256;
|
2009-01-31 12:09:54 -08:00
|
|
|
};
|
|
|
|
inherit buildInputs;
|
2020-04-30 00:22:20 -07:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
|
|
|
|
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2009-01-31 12:09:54 -08:00
|
|
|
meta = {
|
2012-12-11 21:36:14 -08:00
|
|
|
inherit (s) version;
|
|
|
|
description = "GNU Chess engine";
|
2021-01-14 20:31:39 -08:00
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2009-01-31 12:09:54 -08:00
|
|
|
};
|
2012-12-11 21:36:14 -08:00
|
|
|
}
|