Pass down runtime dependencies
brumik opened this issue · comments
I would like to pass down to the compiled application a runtime dependency just like in
writeShellApplication {
runtimeInputs = [ pkgs.bitwarden-cli ];
...
}
I tried to pass down buildInputs with no avail. Could somebody help me out what to look for? I do not see this option in mkDerivation
nor within this library.
Context:
My go application needs a cli too to execute under the hood. It works just fine if I already have the tool installed (like in the shell.nix) but once I use it as a package it cannot use the cli tool anymore. https://github.com/brumik/bw-setup-secrets/
I did it with post fixup and wrapper:
postFixup = ''
wrapProgram "$out/bin/bw-setup-secrets" --set PATH ${lib.makeBinPath [
pkgs.bitwarden-cli
]}
'';