Unverified Commit df9a3347 authored by misuzu's avatar misuzu Committed by GitHub
Browse files

proxmox-auto-install-assistant: 8.3.3 -> 8.4.6 (#397704)

parents fbf76bf7 af7cb995
Loading
Loading
Loading
Loading
+227 −196

File changed.

Preview size limit exceeded, changes collapsed.

+2 −0

File added.

Preview size limit exceeded, changes collapsed.

+16 −10
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  fetchgit,
  rustPlatform,
  testers,
  pkg-config,
  openssl,
  versionCheckHook,
@@ -10,20 +9,20 @@

rustPlatform.buildRustPackage rec {
  pname = "proxmox-auto-install-assistant";
  version = "8.3.3";
  version = "8.4.6";

  src = fetchgit {
    url = "git://git.proxmox.com/git/pve-installer.git";
    rev = "cf6df4a23491071d207dcc8b00af8ddf310ae0b0";
    hash = "sha256-n4mn8VF84QyJiUNubgoxkbMEbuyj8n5KeIdVB3Xz5iY=";
    rev = "fcd13b1503bec573da9db4bfad42b2478e97d9ce";
    hash = "sha256-fPl6qxWTaqumtnAFUfEBTChTIe+94fWCZv8s7Sq9zSk=";
  };

  postPatch = ''
    rm -v .cargo/config.toml
    cp -v ${./Cargo.lock} Cargo.lock
    # fix up hard-coded version number to match that of the debian package
    substituteInPlace proxmox-auto-install-assistant/Cargo.toml \
      --replace-fail 'version = "0.1.0"' 'version = "${version}"'
    # pre-generated using `make locale-info.json`
    # depends on non-packaged perl modules and debian-specific files
    cp -v ${./locale-info.json} locale-info.json
  '';

  buildAndTestSubdir = "proxmox-auto-install-assistant";
@@ -34,10 +33,17 @@ rustPlatform.buildRustPackage rec {
  buildInputs = [ openssl.dev ];

  postFixup = ''
    # openssl is not actually necessary, only pulled in through a feature (unfortunately)
    patchelf --remove-needed libssl.so.3 $out/bin/proxmox-auto-install-assistant
    # these libraries are not actually necessary, only linked in by cargo
    # through crate dependencies (unfortunately)
    patchelf \
      --remove-needed libcrypto.so.3 \
      --remove-needed libssl.so.3 \
      $out/bin/proxmox-auto-install-assistant
    patchelf --shrink-rpath $out/bin/proxmox-auto-install-assistant
  '';

  disallowedReferences = [ openssl.out ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";
@@ -47,7 +53,7 @@ rustPlatform.buildRustPackage rec {
    longDescription = ''
      This tool can be used to prepare a Proxmox installation ISO for automated installations.
      Additional uses are to validate the format of an answer file or to test match filters and
      print information on the properties to match against for the current hardware
      print information on the properties to match against for the current hardware.
    '';
    homepage = "https://pve.proxmox.com/wiki/Automated_Installation";
    changelog = "https://git.proxmox.com/?p=pve-installer.git;a=blob;f=debian/changelog";