Begin adding support for using opentofu through openbao secrets
This commit is contained in:
parent
8e31f30762
commit
e61b3b06f3
12 changed files with 551 additions and 39 deletions
|
@ -33,7 +33,11 @@ let
|
|||
in
|
||||
{
|
||||
buildRustPackage =
|
||||
crateName:
|
||||
{
|
||||
crateName,
|
||||
runtimeInputs,
|
||||
replacePath ? false,
|
||||
}:
|
||||
craneLib.buildPackage (
|
||||
individualCrateArgs
|
||||
// {
|
||||
|
@ -41,15 +45,15 @@ in
|
|||
cargoExtraArgs = "-p ${crateName}";
|
||||
src = fileSetForCrate crateName;
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/${crateName} --set PATH "${
|
||||
lib.makeBinPath [
|
||||
pkgs.curl
|
||||
pkgs.uutils-coreutils-noprefix
|
||||
pkgs.iproute2
|
||||
]
|
||||
}"
|
||||
'';
|
||||
postFixup =
|
||||
if replacePath then
|
||||
''
|
||||
wrapProgram $out/bin/${crateName} --set PATH "${lib.makeBinPath runtimeInputs}"
|
||||
''
|
||||
else
|
||||
''
|
||||
wrapProgram $out/bin/${crateName} --suffix PATH : "${lib.makeBinPath runtimeInputs}"
|
||||
'';
|
||||
meta = {
|
||||
mainProgram = crateName;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue