2021-02-05 17:12:51 +00:00
|
|
|
{ lib, openssl, pkg-config, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "afterburn";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "5.5.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "afterburn";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-3+FlW/y8EScJKaFvxa/hOlDF18kEtz2XyMdrDZgcMXs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
cargoHash = "sha256-DTFvaXPr21qvx1FA1phueRxTgcrfhGgb9Vktah372Uo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2021-08-12 14:41:47 +00:00
|
|
|
postPatch = ''
|
2021-02-05 17:12:51 +00:00
|
|
|
substituteInPlace ./systemd/afterburn-checkin.service --replace /usr/bin $out/bin
|
|
|
|
substituteInPlace ./systemd/afterburn-firstboot-checkin.service --replace /usr/bin $out/bin
|
|
|
|
substituteInPlace ./systemd/afterburn-sshkeys@.service.in --replace /usr/bin $out/bin
|
|
|
|
substituteInPlace ./systemd/afterburn.service --replace /usr/bin $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
DEFAULT_INSTANCE=root PREFIX= DESTDIR=$out make install-units
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/coreos/ignition";
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "A one-shot cloud provider agent";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.arianvp ];
|
2023-02-09 11:40:11 +00:00
|
|
|
platforms = platforms.linux;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|