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 08:22:20 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
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
|
|
|
}
|