openspades: less hacks

This commit is contained in:
Nikolay Amiantov
2016-05-07 11:58:17 +03:00
parent a7fe84e38a
commit c7193c1506
2 changed files with 7 additions and 3 deletions

View File

@@ -58,8 +58,13 @@ stdenv.mkDerivation {
''}
configureFlagsArray=( --enable-shared --with-threads
<<<<<<< Updated upstream
CPPFLAGS="${concatStringsSep " " (map (p: "-I${p.dev or p}/include") buildInputs)}"
LDFLAGS="${concatStringsSep " " (map (p: "-L${p.lib or (p.out or p)}/lib") buildInputs)}"
=======
CPPFLAGS="${concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs)}"
LDFLAGS="${concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs)}"
>>>>>>> Stashed changes
LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"
)
'';