diff --git a/pkgs/development/python-modules/libversion/default.nix b/pkgs/development/python-modules/libversion/default.nix index a492ea7806a0..46d23ae5c1ea 100644 --- a/pkgs/development/python-modules/libversion/default.nix +++ b/pkgs/development/python-modules/libversion/default.nix @@ -20,6 +20,11 @@ buildPythonPackage rec { sha256 = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "'pkg-config'" "'$(command -v $PKG_CONFIG)'" + ''; + nativeBuildInputs = [ pkg-config ];