afterburn: init at 4.6.0

This commit is contained in:
Arian van Putten 2019-09-13 18:11:03 +02:00 committed by Florian Klink
parent d5a1138049
commit 4e57aa0ecc
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ stdenv, lib, openssl, pkg-config, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "afterburn";
version = "4.6.0";
src = fetchFromGitHub {
owner = "coreos";
repo = "afterburn";
rev = "v${version}";
sha256 = "1afy9spm8g8bq2pw44dkrkfz4aimhdz4h5lg9iafby832v5dxbqj";
};
cargoSha256 = "035k55l0hs39a87iq8yxx4i87829kzvvmlgph0adjfmsppz5b8k1";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
patchPhase = ''
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";
description = "This is a small utility, typically used in conjunction with Ignition, which reads metadata from a given cloud-provider and applies it to the system.";
license = licenses.asl20;
maintainers = [ maintainers.arianvp ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -21014,6 +21014,8 @@ in
docker-distribution = callPackage ../applications/virtualization/docker/distribution.nix { };
afterburn = callPackage ../tools/admin/afterburn {};
amazon-ecr-credential-helper = callPackage ../tools/admin/amazon-ecr-credential-helper { };
docker-credential-gcr = callPackage ../tools/admin/docker-credential-gcr { };