Attempt to implement and test setting static ips from instance metadata
This commit is contained in:
parent
dd1cfa79e7
commit
47dbb7cdd3
16 changed files with 258 additions and 59 deletions
|
@ -26,7 +26,7 @@ let
|
|||
fileset = lib.fileset.unions [
|
||||
./Cargo.lock
|
||||
./Cargo.toml
|
||||
(craneLib.fileset.commonCargoSources ./lib/common)
|
||||
(craneLib.fileset.commonCargoSources ./lib)
|
||||
(craneLib.fileset.commonCargoSources ./program/${crate})
|
||||
];
|
||||
};
|
||||
|
@ -40,6 +40,19 @@ in
|
|||
pname = crateName;
|
||||
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
|
||||
]
|
||||
}"
|
||||
'';
|
||||
meta = {
|
||||
mainProgram = crateName;
|
||||
};
|
||||
}
|
||||
);
|
||||
checks = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue