mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Lib/Optimizations] add autotools support
This commit is contained in:
parent
4a22e21f65
commit
09111b2825
1 changed files with 12 additions and 0 deletions
|
|
@ -313,6 +313,7 @@ rec {
|
|||
cmake = any (p: (myGetName p) == "cmake") pkg.nativeBuildInputs;
|
||||
go = any (p: (myGetName p) == "go") pkg.nativeBuildInputs;
|
||||
ninja = any (p: (myGetName p) == "ninja") pkg.nativeBuildInputs;
|
||||
autotools = any (p: (myGetName p) == "autoreconf-hook") pkg.nativeBuildInputs;
|
||||
} // attrs);
|
||||
|
||||
makeOptimizationFlags =
|
||||
|
|
@ -333,6 +334,7 @@ rec {
|
|||
, rust ? false
|
||||
, cmake ? false
|
||||
, ninja ? false
|
||||
, autotools ? false
|
||||
, l1LineCache ? null
|
||||
, l1iCache ? null
|
||||
, l1dCache ? null
|
||||
|
|
@ -385,6 +387,16 @@ rec {
|
|||
|
||||
'';
|
||||
})
|
||||
(optionalAttrs autotools {
|
||||
preConfigure = ''
|
||||
|
||||
configureFlagsArray+=(
|
||||
"CFLAGS=$CFLAGS"
|
||||
"CXXFLAGS=$CXXFLAGS"
|
||||
)
|
||||
|
||||
'';
|
||||
})
|
||||
(optionalAttrs cmake {
|
||||
preConfigure = ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue