depot/third_party/nixpkgs/pkgs/games/gnuchess/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

35 lines
831 B
Nix

{lib, stdenv, fetchurl, flex, makeWrapper}:
let
s = # Generated upstream information
rec {
baseName="gnuchess";
version="6.2.7";
name="${baseName}-${version}";
url="mirror://gnu/chess/${name}.tar.gz";
sha256="0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5";
};
buildInputs = [
flex
];
in
stdenv.mkDerivation {
inherit (s) name version;
src = fetchurl {
inherit (s) url sha256;
};
inherit buildInputs;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/gnuchessx --set PATH "$out/bin"
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
'';
meta = {
inherit (s) version;
description = "GNU Chess engine";
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.unix;
license = lib.licenses.gpl3Plus;
};
}