mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
Merge pull request #14989 from veprbl/root_fix2
root: fix chrooted build, workaround 491f7f017c
(cmake: set LIBDIR…
This commit is contained in:
commit
e9b62fb021
@ -12,8 +12,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ cmake pkgconfig python libX11 libXpm libXft libXext zlib lzma ];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs build/unix/
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-Drpath=ON"
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||
]
|
||||
++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user