Commit 249cbe13 authored by Doron Behar's avatar Doron Behar
Browse files

opus-tools: add versionCheckHook for opusenc

parent 7ff9861c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  flac,
  opusfile,
  libopusenc,
  versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -28,6 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
    libopusenc
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgram = "${placeholder "out"}/bin/opusenc";

  meta = {
    description = "Tools to work with opus encoded audio streams";
    homepage = "https://www.opus-codec.org/";