Shell Completion through postInstall Hook #668
-
This looks for bin in |
Beta Was this translation helpful? Give feedback.
Answered by
ipetkov
Jul 27, 2024
Replies: 1 comment
-
Hi @rsrohitsingh682, normally when you call let
commonArgs = {
# everything except for `postInstall`
};
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
in
craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts;
postInstal = ''
# etc ...
'';
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ipetkov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rsrohitsingh682, normally when you call
buildPackage
without specifyingcargoArtifacts
all attributes will be applied to the deps-only and the final derivations. Since you want the install hook to only run on the final derivation, you'll need to explicitly callbuildDepsOnly
with the install hook omitted: