Skip to content

Commit

Permalink
fetchPipMetadata: set PKG_CONFIG_PATH...
Browse files Browse the repository at this point in the history
to nativeBuildInputs. We still need to run a setup.py for
many packages at locking time. Those often try to find
inputs via PKG_CONFIG_PATH so i think it's a reasonable
default.
  • Loading branch information
phaer committed Jul 18, 2024
1 parent 80cfb95 commit d589f0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/fetchPipMetadata/script.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
;
});

env' =
{
PKG_CONFIG_PATH = lib.concatMapStringsSep ":" (n: "${n}/lib/pkgconfig") nativeBuildInputs;
}
// env;

script =
writePureShellScript
path
Expand All @@ -63,7 +69,7 @@
lib.foldlAttrs
(acc: name: value: acc + "\nexport " + lib.toShellVar name value)
""
env
env'
}
${package}/bin/fetch_pip_metadata \
--json-args-file ${args} \
Expand Down

0 comments on commit d589f0e

Please sign in to comment.