Use build paths in the install entries of a package $ . ./helpers.sh $ make_lockdir $ cat >dune.lock/test.pkg < (version 0.0.1) > (build > (system "\| cat >test.install < "\| bin: [ "?_build/install/default/bin/foo" ] > "\| EOF > )) > EOF $ build_pkg test