Commit d7fbda50 authored by Gavin John's avatar Gavin John
Browse files

direwolf: add versionCheckHook

parent dd9b2be8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
  espeak,
  udev,
  udevCheckHook,
  versionCheckHook,
  nix-update-script,
  extraScripts ? false,
}:
@@ -59,6 +60,7 @@ stdenv.mkDerivation (finalAttrs: {
      perl
      espeak
    ];
  nativeInstallCheckInputs = [ versionCheckHook ];

  preConfigure = lib.optionals (!extraScripts) ''
    echo "" > scripts/CMakeLists.txt
@@ -85,6 +87,8 @@ stdenv.mkDerivation (finalAttrs: {

  doInstallCheck = true;

  versionCheckProgramArg = [ "-u" ];

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

  meta = {