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
···65 # is why we use the more obscure "bfd" and not "binutils" for this
66 # choice.
67 else "bfd";
68- extensions = {
69 sharedLibrary =
70 /**/ if final.isDarwin then ".dylib"
71 else if final.isWindows then ".dll"
72 else ".so";
00000073 executable =
74 /**/ if final.isWindows then ".exe"
75 else "";
···65 # is why we use the more obscure "bfd" and not "binutils" for this
66 # choice.
67 else "bfd";
68+ extensions = rec {
69 sharedLibrary =
70 /**/ if final.isDarwin then ".dylib"
71 else if final.isWindows then ".dll"
72 else ".so";
73+ staticLibrary =
74+ /**/ if final.isWindows then ".lib"
75+ else ".a";
76+ library =
77+ /**/ if final.isStatic then staticLibrary
78+ else sharedLibrary;
79 executable =
80 /**/ if final.isWindows then ".exe"
81 else "";