mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
Merge pull request #233736 from nevivurn/feature/fix-gnushogi
gnushogi: fix build
This commit is contained in:
commit
c7b4403c19
@ -10,11 +10,19 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y";
|
||||
};
|
||||
|
||||
env.LDFLAGS = lib.optionalString (!stdenv.isDarwin) "-Wl,-z,muldefs";
|
||||
|
||||
# Makefile ignores errors, so the build may silently succeed erroneously
|
||||
postBuild = ''
|
||||
test -e gnushogi/gnushogi || { echo "ERROR: no binary produced"; exit 1; }
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "GNU implementation of Shogi, also known as Japanese Chess";
|
||||
homepage = "https://www.gnu.org/software/gnushogi/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.ciil ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin; # darwin does not support -z muldefs
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user