0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

afterburn: 5.7.0 -> 5.8.2 (#406858)

This commit is contained in:
Wolfgang Walther 2025-06-01 12:45:34 +00:00 committed by GitHub
commit 28cee55ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,38 +8,40 @@
rustPlatform.buildRustPackage rec {
pname = "afterburn";
version = "5.7.0";
version = "5.8.2";
src = fetchFromGitHub {
owner = "coreos";
repo = "afterburn";
rev = "v${version}";
sha256 = "sha256-j2eQUro0Rx1axBAaZDNICRrkygb4JAyxVAER/5BXXLY=";
sha256 = "sha256-hlcUtEc0uWFolCt+mZd7f68PJPa+i/mv+2aJh4Vhmsw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-xA5hp7a4DFMh8Xrh2ft94s6aNjORKtyCuNy4GgJbSsw=";
cargoHash = "sha256-Wn4Np1rwHh2sL1sqKalJrIDgMffxJgD1C2QOAR8bDRo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
postPatch = ''
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
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 = with lib; {
homepage = "https://github.com/coreos/ignition";
meta = {
homepage = "https://github.com/coreos/afterburn";
description = "One-shot cloud provider agent";
license = licenses.asl20;
maintainers = [ maintainers.arianvp ];
platforms = platforms.linux;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ arianvp ];
platforms = lib.platforms.linux;
mainProgram = "afterburn";
};
}