Unverified Commit c7cadfff authored by Fernando Rodrigues's avatar Fernando Rodrigues
Browse files

taskwarrior3: use versionCheckHook to prevent future commit/version mismatches.

parent 5d353534
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -19,6 +19,9 @@

  # nativeCheckInputs
  python3,

  # nativeInstallCheckInputs
  versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "taskwarrior";
@@ -90,6 +93,14 @@ stdenv.mkDerivation (finalAttrs: {
    python3
  ];

  doInstallCheck = true;

  nativeInstallCheckInputs = [
    versionCheckHook
  ];

  versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";

  postInstall = ''
    # ZSH is installed automatically from some reason, only bash and fish need
    # manual installation