summary refs log tree commit diff
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2020-04-30 08:22:20 +0100
committerLancelot SIX <lsix@lancelotsix.com>2020-04-30 08:24:25 +0100
commita88741ac15fb15cbb253305ffc8ecc8f7ffe7c42 (patch)
tree242d689629e3d34b0407b33be2bdf78e263d1c98
parent7772563231144d7ec59893933f045d482d7264aa (diff)
downloadnixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar.gz
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar.bz2
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar.lz
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar.xz
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.tar.zst
nixpkgs-a88741ac15fb15cbb253305ffc8ecc8f7ffe7c42.zip
gnuchess: 6.2.5 -> 6.2.6
-rw-r--r--pkgs/games/gnuchess/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/games/gnuchess/default.nix b/pkgs/games/gnuchess/default.nix
index 43c60c66730..478da6dc32a 100644
--- a/pkgs/games/gnuchess/default.nix
+++ b/pkgs/games/gnuchess/default.nix
@@ -1,12 +1,12 @@
-{stdenv, fetchurl, flex}:
+{stdenv, fetchurl, flex, makeWrapper}:
 let
   s = # Generated upstream information
   rec {
     baseName="gnuchess";
-    version="6.2.5";
+    version="6.2.6";
     name="${baseName}-${version}";
     url="mirror://gnu/chess/${name}.tar.gz";
-    sha256="00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs";
+    sha256="0kxhdv01ia91v2y0cmzbll391ns2vbmn65jjrv37h4s1srszh5yn";
   };
   buildInputs = [
     flex
@@ -18,6 +18,13 @@ stdenv.mkDerivation {
     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";