forked from mirrors/nixpkgs
gnuchess: refactor
This commit is contained in:
parent
79c0393baf
commit
f6cc37608d
|
@ -1,23 +1,17 @@
|
|||
{lib, stdenv, fetchurl, flex, makeWrapper}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="gnuchess";
|
||||
version="6.2.9";
|
||||
name="${baseName}-${version}";
|
||||
url="mirror://gnu/chess/${name}.tar.gz";
|
||||
sha256="sha256-3fzCC911aQCpq2xCx9r5CiiTv38ZzjR0IM42uuvEGJA=";
|
||||
{ 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
|
||||
];
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
url https://ftp.gnu.org/gnu/chess/
|
Loading…
Reference in a new issue