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:
parent
78a498395a
commit
b5250a333b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue