From c5e5ea90e1379aca8b1cb3bf1affeb61cd2e0821 Mon Sep 17 00:00:00 2001 From: Taeer Bar-Yam Date: Wed, 28 Apr 2021 10:15:37 -0400 Subject: [PATCH] libgnurx: output libgnurx.a when static --- pkgs/os-specific/windows/libgnurx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/windows/libgnurx/default.nix b/pkgs/os-specific/windows/libgnurx/default.nix index 85a3c463a289..e760bddabfbf 100644 --- a/pkgs/os-specific/windows/libgnurx/default.nix +++ b/pkgs/os-specific/windows/libgnurx/default.nix @@ -10,6 +10,11 @@ in stdenv.mkDerivation rec { sha256 = "0xjxcxgws3bblybw5zsp9a4naz2v5bs1k3mk8dw00ggc0vwbfivi"; }; + # file looks for libgnurx.a when compiling statically + postInstall = lib.optionalString stdenv.hostPlatform.isStatic '' + ln -s $out/lib/libgnurx{.dll.a,.a} + ''; + meta = { platforms = lib.platforms.windows; };