mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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;
|
cmake = any (p: (myGetName p) == "cmake") pkg.nativeBuildInputs;
|
||||||
go = any (p: (myGetName p) == "go") pkg.nativeBuildInputs;
|
go = any (p: (myGetName p) == "go") pkg.nativeBuildInputs;
|
||||||
ninja = any (p: (myGetName p) == "ninja") pkg.nativeBuildInputs;
|
ninja = any (p: (myGetName p) == "ninja") pkg.nativeBuildInputs;
|
||||||
|
autotools = any (p: (myGetName p) == "autoreconf-hook") pkg.nativeBuildInputs;
|
||||||
} // attrs);
|
} // attrs);
|
||||||
|
|
||||||
makeOptimizationFlags =
|
makeOptimizationFlags =
|
||||||
|
|
@ -333,6 +334,7 @@ rec {
|
||||||
, rust ? false
|
, rust ? false
|
||||||
, cmake ? false
|
, cmake ? false
|
||||||
, ninja ? false
|
, ninja ? false
|
||||||
|
, autotools ? false
|
||||||
, l1LineCache ? null
|
, l1LineCache ? null
|
||||||
, l1iCache ? null
|
, l1iCache ? null
|
||||||
, l1dCache ? null
|
, l1dCache ? null
|
||||||
|
|
@ -385,6 +387,16 @@ rec {
|
||||||
|
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
(optionalAttrs autotools {
|
||||||
|
preConfigure = ''
|
||||||
|
|
||||||
|
configureFlagsArray+=(
|
||||||
|
"CFLAGS=$CFLAGS"
|
||||||
|
"CXXFLAGS=$CXXFLAGS"
|
||||||
|
)
|
||||||
|
|
||||||
|
'';
|
||||||
|
})
|
||||||
(optionalAttrs cmake {
|
(optionalAttrs cmake {
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue