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 { stdenv, pkgconfig, fetchPypi, buildPythonPackage
, buildPackages
, zstd, pytest }: , zstd, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
@ -12,7 +13,7 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ 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 ]; nativeBuildInputs = [ pkgconfig ];