diff --git a/pkgs/games/gnuchess/default.nix b/pkgs/games/gnuchess/default.nix index c150ba4ffee4..3acf6a8aa62d 100644 --- a/pkgs/games/gnuchess/default.nix +++ b/pkgs/games/gnuchess/default.nix @@ -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; }; } diff --git a/pkgs/games/gnuchess/default.upstream b/pkgs/games/gnuchess/default.upstream deleted file mode 100644 index f19dca51addc..000000000000 --- a/pkgs/games/gnuchess/default.upstream +++ /dev/null @@ -1 +0,0 @@ -url https://ftp.gnu.org/gnu/chess/