2021-01-23 10:26:07 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, libplacebo, vapoursynth, vulkan-headers, vulkan-loader }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vs-placebo";
|
2021-10-12 21:41:08 +02:00
|
|
|
version = "1.4.2";
|
2021-01-23 10:26:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lypheo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-12 21:41:08 +02:00
|
|
|
sha256 = "sha256-nerS1z/Ch/UqcmcY2gNL1Xl3hs1/etEAODj8pzrSuEE=";
|
2021-01-23 10:26:07 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ libplacebo vapoursynth vulkan-headers vulkan-loader ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A libplacebo-based debanding, scaling and color mapping plugin for VapourSynth";
|
|
|
|
homepage = "https://github.com/Lypheo/vs-placebo";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|