nixpkgs/pkgs/games/gnuchess/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
774 B
Nix
Raw Normal View History

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 = [
flex
];
2020-04-30 07:22:20 +00:00
nativeBuildInputs = [ makeWrapper ];
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;
};
2012-12-12 05:36:14 +00:00
}