Unverified Commit 7df61185 authored by Tom Hunze's avatar Tom Hunze
Browse files

conventional-changelog-cli: add version check

parent 0bea6470
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  nodejs,
  pnpm,
  makeBinaryWrapper,
  versionCheckHook,
  nix-update-script,
}:

@@ -58,6 +59,12 @@ stdenv.mkDerivation (finalAttrs: {
      --replace-warn '"exports": "./src/index.ts"' '"exports": "./dist/index.js"'
  '';

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--use-github-releases"