2021-12-19 17:27:53 +00:00
|
|
|
{ lib, stdenv, fetchurl, flex, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnuchess";
|
|
|
|
version = "6.2.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/chess/gnuchess-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-3fzCC911aQCpq2xCx9r5CiiTv38ZzjR0IM42uuvEGJA=";
|
2012-12-12 05:36:14 +00:00
|
|
|
};
|
2021-12-19 17:27:53 +00:00
|
|
|
|
2012-12-12 05:36:14 +00:00
|
|
|
buildInputs = [
|
2009-01-31 20:09:54 +00:00
|
|
|
flex
|
|
|
|
];
|
2020-04-30 07:22:20 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2024-05-07 06:41:37 +00:00
|
|
|
configureFlags = [
|
|
|
|
# register keyword is removed in c++17 so stick to c++14
|
|
|
|
"CXXFLAGS=-std=c++14"
|
|
|
|
];
|
|
|
|
|
2020-04-30 07:22:20 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
|
|
|
|
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2021-12-19 17:27:53 +00:00
|
|
|
meta = with lib; {
|
2012-12-12 05:36:14 +00:00
|
|
|
description = "GNU Chess engine";
|
2021-12-19 17:27:53 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3Plus;
|
2009-01-31 20:09:54 +00:00
|
|
|
};
|
2012-12-12 05:36:14 +00:00
|
|
|
}
|