mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
e612d0e09a
See https://lists.gnu.org/archive/html/info-gnu/2021-05/msg00006.html for release information.
36 lines
831 B
Nix
36 lines
831 B
Nix
{lib, stdenv, fetchurl, flex, makeWrapper}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="gnuchess";
|
|
version="6.2.8";
|
|
name="${baseName}-${version}";
|
|
url="mirror://gnu/chess/${name}.tar.gz";
|
|
sha256="0irqb0wl30c2i1rs8f6mm1c89l7l9nxxv7533lr408h1m36lc16m";
|
|
};
|
|
buildInputs = [
|
|
flex
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
inherit buildInputs;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
|
|
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
|
|
'';
|
|
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "GNU Chess engine";
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.gpl3Plus;
|
|
};
|
|
}
|