chore: Nix: build thin static libraries
Less disk churn and .o files are automatically included in binary cache pushes
This commit is contained in:
parent
3439cc80b3
commit
31876691dc
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ in
|
|||
objects = mapAttrs compileMod mods;
|
||||
staticLib = runCommand "${name}-lib" { buildInputs = [ stdenv.cc.bintools.bintools ]; } ''
|
||||
mkdir $out
|
||||
ar rcs $out/lib${name}.a ${lib.concatStringsSep " " (map (drv: "${drv}/out.o") (attrValues objects))}
|
||||
ar Trcs $out/lib${name}.a ${lib.concatStringsSep " " (map (drv: "${drv}/out.o") (attrValues objects))}
|
||||
'';
|
||||
|
||||
lean-package = writeScriptBin "lean" ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue