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";
|
2023-11-19 19:58:12 +01:00
|
|
|
version = "1.4.4";
|
2021-01-23 10:26:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lypheo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-19 19:58:12 +01:00
|
|
|
sha256 = "sha256-1DTdllP+Y4s+t2PMnpcgeLjOxOyyV/yhFSxPP9/Gy9M=";
|
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 \
|
2023-11-19 19:58:12 +01:00
|
|
|
--replace "vapoursynth_dep.get_variable(pkgconfig: 'libdir')" "get_option('libdir')"
|
2021-01-23 10:26:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|