Commit 1f675f27 authored by jopejoe1's avatar jopejoe1
Browse files

kvazaar: enable doCheck

parent e938ba4d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
  gitUpdater,
  testers,
  cmake,
  libtool,
  ffmpeg-headless,
  hm,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -21,10 +24,19 @@ stdenv.mkDerivation (finalAttrs: {
  # https://github.com/ultravideo/kvazaar/pull/426
  postPatch = ''
    substituteInPlace CMakeLists.txt --replace-fail 'NOT LINUX' 'NOT LINUX AND NOT BSD'

    substituteInPlace tests/util.sh --replace-fail '../libtool' '${lib.getExe libtool}'
    substituteInPlace tests/util.sh --replace-fail 'TAppDecoderStatic' '${lib.getExe' hm "TAppDecoder"}'

    chmod +x tests/util.sh
  '';

  nativeBuildInputs = [ cmake ];

  nativeCheckInputs = [
    ffmpeg-headless
  ];

  outputs = [
    "out"
    "lib"
@@ -32,6 +44,8 @@ stdenv.mkDerivation (finalAttrs: {
    "man"
  ];

  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
    tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;