evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / mi / mirakurun / fix-musl-detection.patch
blob6f27b2fe6c7a6452dfc4810f1746e322f1e755ba
1 diff --git a/packages/crc32/index.js b/packages/crc32/index.js
2 index cdc7519..7b05930 100644
3 --- a/packages/crc32/index.js
4 +++ b/packages/crc32/index.js
5 @@ -5,7 +5,7 @@ const { platform, arch } = process
7 let nativeBinding = null
8 let localFileExisted = false
9 -let isMusl = false
10 +let isMusl = @isMusl@
11 let loadError = null
13 switch (platform) {
14 @@ -114,7 +114,6 @@ switch (platform) {
15 case 'linux':
16 switch (arch) {
17 case 'x64':
18 - isMusl = readFileSync('/usr/bin/ldd', 'utf8').includes('musl')
19 if (isMusl) {
20 localFileExisted = existsSync(join(__dirname, 'crc32.linux-x64-musl.node'))
21 try {
22 @@ -140,7 +139,6 @@ switch (platform) {
24 break
25 case 'arm64':
26 - isMusl = readFileSync('/usr/bin/ldd', 'utf8').includes('musl')
27 if (isMusl) {
28 localFileExisted = existsSync(join(__dirname, 'crc32.linux-arm64-musl.node'))
29 try {