Merge pull request #138258 from alyssais/cleanSource-socket

lib.cleanSource: ignore sockets

authored by

Jörg Thalheim and committed by
GitHub
63a2fd8f 079f6b27

+3 -1
+3 -1
lib/sources.nix
··· 43 43 lib.hasSuffix ".o" baseName || 44 44 lib.hasSuffix ".so" baseName || 45 45 # Filter out nix-build result symlinks 46 - (type == "symlink" && lib.hasPrefix "result" baseName) 46 + (type == "symlink" && lib.hasPrefix "result" baseName) || 47 + # Filter out sockets and other types of files we can't have in the store. 48 + (type == "unknown") 47 49 ); 48 50 49 51 # Filters a source tree removing version control files and directories using cleanSourceWith