mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
afterburn: 5.7.0 -> 5.8.2
This commit is contained in:
parent
a61befb69a
commit
2a8cae3f50
1 changed files with 14 additions and 12 deletions
|
@ -8,38 +8,40 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "afterburn";
|
pname = "afterburn";
|
||||||
version = "5.7.0";
|
version = "5.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "coreos";
|
owner = "coreos";
|
||||||
repo = "afterburn";
|
repo = "afterburn";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-j2eQUro0Rx1axBAaZDNICRrkygb4JAyxVAER/5BXXLY=";
|
sha256 = "sha256-hlcUtEc0uWFolCt+mZd7f68PJPa+i/mv+2aJh4Vhmsw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-xA5hp7a4DFMh8Xrh2ft94s6aNjORKtyCuNy4GgJbSsw=";
|
cargoHash = "sha256-Wn4Np1rwHh2sL1sqKalJrIDgMffxJgD1C2QOAR8bDRo=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ./systemd/afterburn-checkin.service --replace /usr/bin $out/bin
|
substituteInPlace \
|
||||||
substituteInPlace ./systemd/afterburn-firstboot-checkin.service --replace /usr/bin $out/bin
|
./systemd/afterburn-checkin.service \
|
||||||
substituteInPlace ./systemd/afterburn-sshkeys@.service.in --replace /usr/bin $out/bin
|
./systemd/afterburn-firstboot-checkin.service \
|
||||||
substituteInPlace ./systemd/afterburn.service --replace /usr/bin $out/bin
|
./systemd/afterburn-sshkeys@.service.in \
|
||||||
|
./systemd/afterburn.service \
|
||||||
|
--replace-fail /usr/bin "$out/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
DEFAULT_INSTANCE=root PREFIX= DESTDIR=$out make install-units
|
DEFAULT_INSTANCE=root PREFIX= DESTDIR=$out make install-units
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/coreos/ignition";
|
homepage = "https://github.com/coreos/afterburn";
|
||||||
description = "One-shot cloud provider agent";
|
description = "One-shot cloud provider agent";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = [ maintainers.arianvp ];
|
maintainers = with lib.maintainers; [ arianvp ];
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
mainProgram = "afterburn";
|
mainProgram = "afterburn";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue