lol

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

authored by

Daniel Olsen and committed by
Alyssa Ross
875d77ca 70ec0e7e

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