summary refs log tree commit diff
path: root/pkgs/build-support/writers
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-02-22 17:53:44 +0100
committerProfpatsch <mail@profpatsch.de>2019-04-21 13:12:33 +0200
commitea9161e0955fd9fcc330471464f24ebc4aedaae1 (patch)
treea0768d06f74d2787718b86864b752122783c8cec /pkgs/build-support/writers
parentb33da46a8e757740d1b555c12162a1516396d646 (diff)
downloadnixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar.gz
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar.bz2
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar.lz
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar.xz
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.tar.zst
nixpkgs-ea9161e0955fd9fcc330471464f24ebc4aedaae1.zip
writeC: fix finding of libraries
Diffstat (limited to 'pkgs/build-support/writers')
-rw-r--r--pkgs/build-support/writers/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix
index 281d2b19bc6..29a4bbad703 100644
--- a/pkgs/build-support/writers/default.nix
+++ b/pkgs/build-support/writers/default.nix
@@ -94,8 +94,8 @@ rec {
         ]}
         gcc \
             ${optionalString (libraries != [])
-              "$(pkgs.pkgconfig}/bin/pkg-config --cflags --libs ${
-                concatMapStringsSep " " (lib: escapeShellArg (builtins.parseDrvName lib.name).name) (libraries)
+              "$(pkg-config --cflags --libs ${
+                concatMapStringsSep " " (pkg: "$(find ${escapeShellArg pkg}/lib/pkgsconfig -name \*.pc -exec basename {} \;)") libraries
               })"
             } \
             -O \