2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, flex, makeWrapper}:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="gnuchess";
|
2020-06-02 18:00:15 +00:00
|
|
|
version="6.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="mirror://gnu/chess/${name}.tar.gz";
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256="0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
inherit buildInputs;
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
|
|
|
|
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "GNU Chess engine";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|