zstd: fix cygwin build

This commit is contained in:
David McFarland
2025-09-13 18:18:39 -03:00
parent 7ae99ed59b
commit 15b2e4e732
+7
View File
@@ -111,6 +111,13 @@ stdenv.mkDerivation (finalAttrs: {
''
);
# replace invalid symlinks when executable suffix is .exe
postInstall = lib.optionalString stdenv.hostPlatform.isCygwin ''
for link in unzstd zstdcat zstdmt; do
ln -sf zstd.exe $bin/bin/$link
done
'';
outputs = [
"bin"
"dev"