summary refs log tree commit diff
path: root/pkgs/os-specific/linux/crda
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-06-24 20:36:24 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2020-06-25 00:09:22 -0400
commitda8e9918364f2b63f689254d95d7c4b286baedf6 (patch)
tree1481e2eca1667e205f184c055633c361f2a76418 /pkgs/os-specific/linux/crda
parent7a8b3b8b642e88d9af35096524f509b0fb574785 (diff)
downloadnixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar.gz
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar.bz2
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar.lz
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar.xz
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.tar.zst
nixpkgs-da8e9918364f2b63f689254d95d7c4b286baedf6.zip
crda: use prefixed pkg-config
Diffstat (limited to 'pkgs/os-specific/linux/crda')
-rw-r--r--pkgs/os-specific/linux/crda/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/crda/default.nix b/pkgs/os-specific/linux/crda/default.nix
index 5811e9358b0..137e88cd6e8 100644
--- a/pkgs/os-specific/linux/crda/default.nix
+++ b/pkgs/os-specific/linux/crda/default.nix
@@ -31,7 +31,9 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     patchShebangs utils/
-    substituteInPlace Makefile --replace ldconfig true
+    substituteInPlace Makefile \
+      --replace ldconfig true \
+      --replace pkg-config $PKG_CONFIG
     sed -i crda.c \
       -e "/\/usr\/.*\/regulatory.bin/d" \
       -e "s|/lib/crda|${wireless-regdb}/lib/crda|g"