2021-01-22 17:10:08 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }:
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vapoursynth-retinex";
|
|
|
|
version = "r4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
repo = "VapourSynth-Retinex";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "108jmawfn87ydabpxkb0srbk2r8vgpfn0kiby4g56msbc0rpvc6g";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ vapoursynth ];
|
|
|
|
|
2021-01-22 16:50:31 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
|
|
|
|
'';
|
|
|
|
|
2019-06-26 01:40:02 +02:00
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
ext = stdenv.targetPlatform.extensions.sharedLibrary;
|
|
|
|
in ''
|
|
|
|
install -D libretinex${ext} $out/lib/vapoursynth/libretinex${ext}
|
|
|
|
'';
|
|
|
|
|
2021-01-22 17:10:08 +01:00
|
|
|
meta = with lib; {
|
2019-06-26 01:40:02 +02:00
|
|
|
description = "Retinex algorithm for VapourSynth";
|
2021-01-22 17:22:37 +01:00
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Retinex";
|
2019-06-26 01:40:02 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|