depot/third_party/nixpkgs/pkgs/games/gnuchess/default.nix
Default email 646c172193 Project import generated by Copybara.
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
2021-12-21 10:18:32 +08:00

28 lines
660 B
Nix

{ 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=";
};
buildInputs = [
flex
];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
'';
meta = with lib; {
description = "GNU Chess engine";
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
license = licenses.gpl3Plus;
};
}