lib/systems: Add staticLibrary and library

staticLibrary includes common extensions for static libraries
library is a new common attribute that includes both shared and static extensions
main
Daniel Olsen 2 years ago committed by Alyssa Ross
parent 70ec0e7ec4
commit 875d77ca03
  1. 8
      lib/systems/default.nix

@ -65,11 +65,17 @@ rec {
# is why we use the more obscure "bfd" and not "binutils" for this
# choice.
else "bfd";
extensions = {
extensions = rec {
sharedLibrary =
/**/ if final.isDarwin then ".dylib"
else if final.isWindows then ".dll"
else ".so";
staticLibrary =
/**/ if final.isWindows then ".lib"
else ".a";
library =
/**/ if final.isStatic then staticLibrary
else sharedLibrary;
executable =
/**/ if final.isWindows then ".exe"
else "";

Loading…
Cancel
Save