pythonPackages.zstd: fix cross

This commit is contained in:
Frederik Rietdijk 2020-11-19 21:09:23 +01:00
parent 489912ee8b
commit 533e56c262

View file

@ -1,4 +1,5 @@
{ stdenv, pkgconfig, fetchPypi, buildPythonPackage
, buildPackages
, zstd, pytest }:
buildPythonPackage rec {
@ -12,7 +13,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "/usr/bin/pkg-config" "${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config"
--replace "/usr/bin/pkg-config" "${buildPackages.pkgconfig}/bin/${buildPackages.pkgconfig.targetPrefix}pkg-config"
'';
nativeBuildInputs = [ pkgconfig ];