libredirect: Fix cross compilation buildPackages

Currently when cross compiling the `buildPackages.libredirect` has the wrong dynamic library extension.

To reproduce the issue run something like:

```
file $(nix-build -A pkgsCross.mingwW64.buildPackages.libredirect)/lib/libredirect.dll
/nix/store/80llmqa9lkabg3qnmglngzz22fwf739q-libredirect-0/lib/libredirect.dll: Mach-O 64-bit dynamically linked shared library x86_64
```

or

```
nix-diff $(nix-instantiate -A libredirect) $(nix-instantiate -A pkgsCross.mingwW64.buildPackages.libredirect)
```
This commit is contained in:
Hamish Mackenzie 2022-07-20 10:26:48 +12:00 committed by GitHub
parent 78a498395a
commit b5250a333b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ else stdenv.mkDerivation rec {
outputs = ["out" "hook"];
libName = "libredirect" + stdenv.targetPlatform.extensions.sharedLibrary;
libName = "libredirect" + stdenv.hostPlatform.extensions.sharedLibrary;
buildPhase = ''
runHook preBuild