mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-23 01:12:25 +01:00
vapoursynthPlugins.descale: r2 -> r6
This also switches to meson as the build system and declares descale as a python module.
This commit is contained in:
parent
7c36a4c07b
commit
7ad347ddc4
|
@ -1,30 +1,27 @@
|
||||||
{ stdenv, fetchFromGitHub, vapoursynth, python }:
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth, python3 }:
|
||||||
|
|
||||||
let
|
# required to make python3.buildEnv use descale’s python module
|
||||||
ext = stdenv.targetPlatform.extensions.sharedLibrary;
|
python3.pkgs.toPythonModule (stdenv.mkDerivation rec {
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
pname = "vapoursynth-descale";
|
pname = "vapoursynth-descale";
|
||||||
version = "r2";
|
version = "r6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Irrational-Encoding-Wizardry";
|
owner = "Irrational-Encoding-Wizardry";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1vsg6iwbm277hsiawfi6n5h9b7n2n6grl5b287rkb5x2qa88zs0k";
|
sha256 = "093dk125y4gacvhrh10x1i5g2qbsjl4spz74gjjm7xbvrvi1sc72";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||||
buildInputs = [ vapoursynth ];
|
buildInputs = [ vapoursynth ];
|
||||||
|
|
||||||
buildPhase = ''
|
postPatch = ''
|
||||||
c++ -std=c++11 -shared -fPIC -O2 -I${vapoursynth}/include/vapoursynth \
|
substituteInPlace meson.build \
|
||||||
descale.cpp -o libdescale${ext}
|
--replace "vs.get_pkgconfig_variable('libdir')" "get_option('libdir')"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" ];
|
postInstall = ''
|
||||||
|
install -D ../descale.py $out/${python3.sitePackages}/descale.py
|
||||||
installPhase = ''
|
|
||||||
install -D libdescale${ext} $out/lib/vapoursynth/libdescale${ext}
|
|
||||||
install -D descale.py $out/lib/${python.libPrefix}/site-packages/descale.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -34,4 +31,4 @@ in stdenv.mkDerivation rec {
|
||||||
maintainers = with maintainers; [ tadeokondrak ];
|
maintainers = with maintainers; [ tadeokondrak ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue