Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
openssl,
|
|
pkg-config,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "afterburn";
|
|
version = "5.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "afterburn";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-APVbrR4V2Go7ba+1AFZKi0eBxRnT2bm+Fy2/KmvhsjE=";
|
|
};
|
|
|
|
cargoHash = "sha256-WHfC9RPW/FXXZTfU2LEdkKvkJBt/9TemNpBOyv5/Wfo=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace \
|
|
./systemd/afterburn-checkin.service \
|
|
./systemd/afterburn-firstboot-checkin.service \
|
|
./systemd/afterburn-sshkeys@.service.in \
|
|
./systemd/afterburn.service \
|
|
--replace-fail /usr/bin "$out/bin"
|
|
'';
|
|
|
|
postInstall = ''
|
|
DEFAULT_INSTANCE=root PREFIX= DESTDIR=$out make install-units
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/coreos/afterburn";
|
|
description = "One-shot cloud provider agent";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ arianvp ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "afterburn";
|
|
};
|
|
}
|