diff options
author | Hamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> | 2022-07-20 10:26:48 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 10:26:48 +1200 |
commit | b5250a333bda26b02611911845cb43376e7bbf90 (patch) | |
tree | e395ff78b27876b5b2f1fb94a14446a617e3da8a /pkgs/build-support/libredirect | |
parent | 78a498395ae41887abc7564b89ff701164611344 (diff) |
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) ```
Diffstat (limited to 'pkgs/build-support/libredirect')
-rw-r--r-- | pkgs/build-support/libredirect/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/libredirect/default.nix b/pkgs/build-support/libredirect/default.nix index 8f7df3386d14b..b5eb21e5ba4b5 100644 --- a/pkgs/build-support/libredirect/default.nix +++ b/pkgs/build-support/libredirect/default.nix @@ -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 |