Commit c6f02dd3 authored by Paul Meyer's avatar Paul Meyer
Browse files

igvm-tooling: add passthru.update-script

parent ff236364
Loading
Loading
Loading
Loading
+28 −19
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, which
, acpica-tools
{
  lib,
  python3,
  fetchFromGitHub,
  fetchpatch,
  which,
  acpica-tools,
  nix-update-script,
}:

python3.pkgs.buildPythonApplication rec {
@@ -38,7 +40,8 @@ python3.pkgs.buildPythonApplication rec {

  nativeBuildInputs = [ acpica-tools ];

  propagatedBuildInputs = (with python3.pkgs; [
  propagatedBuildInputs =
    (with python3.pkgs; [
      setuptools
      ecdsa
      cstruct
@@ -46,7 +49,8 @@ python3.pkgs.buildPythonApplication rec {
      pytest
      cached-property
      frozendict
  ]) ++ [
    ])
    ++ [
      acpica-tools
      which
    ];
@@ -58,11 +62,16 @@ python3.pkgs.buildPythonApplication rec {
    find $out/share/igvm-tooling/acpi -name "*.dsl" -exec iasl -f {} \;
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "IGVM Image Generator";
    homepage = "https://github.com/microsoft/igvm-tooling";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ malt3 katexochen ];
    maintainers = with lib.maintainers; [
      malt3
      katexochen
    ];
    changelog = "https://github.com/microsoft/igvm-tooling/releases/tag/igvm-${version}";
    mainProgram = "igvmgen";
    platforms = lib.platforms.all;