From 674c1151c6e23ff3ee21f5a1cb45133e8d51a279 Mon Sep 17 00:00:00 2001 From: davidak Date: Fri, 9 Sep 2022 18:50:18 +0200 Subject: [PATCH] vapoursynth: add version test workaround needed for version format --- pkgs/development/libraries/vapoursynth/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index 7c7987478b80..7962e2111039 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, makeWrapper , runCommandCC, runCommand, vapoursynth, writeText, patchelf, buildEnv -, zimg, libass, python3, libiconv +, zimg, libass, python3, libiconv, testers , ApplicationServices }: @@ -38,6 +38,12 @@ stdenv.mkDerivation rec { inherit lib python3 buildEnv writeText runCommandCC stdenv runCommand vapoursynth makeWrapper withPlugins; }; + + tests.version = testers.testVersion { + package = vapoursynth; + # Check Core version to prevent false positive with API version + version = "Core R${version}"; + }; }; postInstall = '' @@ -56,5 +62,6 @@ stdenv.mkDerivation rec { license = licenses.lgpl21; platforms = platforms.x86_64; maintainers = with maintainers; [ rnhmjoj sbruder tadeokondrak ]; + mainProgram = "vspipe"; }; }