nixpkgs/pkgs/games/gnuchess/default.nix

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

29 lines
660 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 ];
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
}