Fix cmake flags overriding
svn path=/nixpkgs/trunk/; revision=26765
This commit is contained in:
parent
ccd2316471
commit
1886fad9f1
@ -384,12 +384,14 @@ let inherit (builtins) head tail trace; in
|
|||||||
echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
|
echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
|
||||||
") ["minInit" "defEnsureDir"];
|
") ["minInit" "defEnsureDir"];
|
||||||
|
|
||||||
cmakeFlags = "-DCMAKE_SKIP_BUILD_RPATH=ON";
|
cmakeFlags = attrByPath ["cmakeFlags"] [] args;
|
||||||
|
|
||||||
|
cmakeRPathFlag = if (attrByPath ["cmakeSkipRpath "] true args) then " -DCMAKE_SKIP_BUILD_RPATH=ON " else "";
|
||||||
|
|
||||||
doCmake = fullDepEntry (''
|
doCmake = fullDepEntry (''
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -D CMAKE_INSTALL_PREFIX="$out" ${toString cmakeFlags} ..
|
cmake -D CMAKE_INSTALL_PREFIX="$out" ${cmakeRPathFlag}${toString cmakeFlags} ..
|
||||||
'') ["minInit" "addInputs" "doUnpack"];
|
'') ["minInit" "addInputs" "doUnpack"];
|
||||||
|
|
||||||
/*debug = x:(trace x x);
|
/*debug = x:(trace x x);
|
||||||
|
Loading…
Reference in New Issue
Block a user