vs-overlay/plugins/retinex/default.nix
Simon Bruder 74b6413005 vapoursynthPlugins: stdenv.lib -> lib
stdenv.lib is deprecated and nixpkgs is currently switching to lib.
2021-05-29 16:30:09 -06:00

32 lines
887 B
Nix

{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }:
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 ];
installPhase =
let
ext = stdenv.targetPlatform.extensions.sharedLibrary;
in ''
install -D libretinex${ext} $out/lib/vapoursynth/libretinex${ext}
'';
meta = with lib; {
description = "Retinex algorithm for VapourSynth";
homepage = https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Retinex;
license = licenses.gpl3;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}