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
···6565 # is why we use the more obscure "bfd" and not "binutils" for this
6666 # choice.
6767 else "bfd";
6868- extensions = {
6868+ extensions = rec {
6969 sharedLibrary =
7070 /**/ if final.isDarwin then ".dylib"
7171 else if final.isWindows then ".dll"
7272 else ".so";
7373+ staticLibrary =
7474+ /**/ if final.isWindows then ".lib"
7575+ else ".a";
7676+ library =
7777+ /**/ if final.isStatic then staticLibrary
7878+ else sharedLibrary;
7379 executable =
7480 /**/ if final.isWindows then ".exe"
7581 else "";