Merge pull request #151348 from Stunkymonkey/gnuchess-updatewalker

gnuchess: refactor
This commit is contained in:
Anderson Torres 2021-12-19 14:48:25 -03:00 committed by GitHub
commit 28eef230ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 22 deletions

View File

@ -1,23 +1,17 @@
{ lib, stdenv, fetchurl, flex, makeWrapper }:
let
s = # Generated upstream information
rec {
baseName="gnuchess";
stdenv.mkDerivation rec {
pname = "gnuchess";
version = "6.2.9";
name="${baseName}-${version}";
url="mirror://gnu/chess/${name}.tar.gz";
src = fetchurl {
url = "mirror://gnu/chess/gnuchess-${version}.tar.gz";
sha256 = "sha256-3fzCC911aQCpq2xCx9r5CiiTv38ZzjR0IM42uuvEGJA=";
};
buildInputs = [
flex
];
in
stdenv.mkDerivation {
inherit (s) name version;
src = fetchurl {
inherit (s) url sha256;
};
inherit buildInputs;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
@ -25,11 +19,10 @@ stdenv.mkDerivation {
wrapProgram $out/bin/gnuchessu --set PATH "$out/bin"
'';
meta = {
inherit (s) version;
meta = with lib; {
description = "GNU Chess engine";
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.unix;
license = lib.licenses.gpl3Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
license = licenses.gpl3Plus;
};
}

View File

@ -1 +0,0 @@
url https://ftp.gnu.org/gnu/chess/