mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-06 01:02:26 +01:00
e94a197efe
vapoursynthPlugins.addgrain: init at r7 vapoursynthPlugins.autocrop: init at 0.1 vapoursynthPlugins.beziercurve: init at r2 vapoursynthPlugins.bifrost: init at 2.2 vapoursynthPlugins.bilateral: init at r3 vapoursynthPlugins.bm3d: init at r8 vapoursynthPlugins.continuityfixer: init at 6.1 vapoursynthPlugins.descale: init at r2 vapoursynthPlugins.eedi2: init at r7.1 vapoursynthPlugins.eedi3m: init at r4 vapoursynthPlugins.f3kdb: init at 2.0.0-1 vapoursynthPlugins.ffms2: init as alias vapoursynthPlugins.fmtconv: init at r20 vapoursynthPlugins.knlmeanscl: init at 1.1.1 vapoursynthPlugins.lsmashsource: init at unstable-2017-08-12 vapoursynthPlugins.nnedi3: init at 11 vapoursynthPlugins.retinex: init at r4 vapoursynthPlugins.sangnom: init at r41 vapoursynthPlugins.tcanny: init at r12 vapoursynthPlugins.tnlmeans: init at unstable-2015-02-25 vapoursynthPlugins.wwxd: init at 1.0
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, vapoursynth, python }:
|
|
|
|
let
|
|
ext = stdenv.targetPlatform.extensions.sharedLibrary;
|
|
in stdenv.mkDerivation rec {
|
|
pname = "vapoursynth-descale";
|
|
version = "r2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Irrational-Encoding-Wizardry";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1vsg6iwbm277hsiawfi6n5h9b7n2n6grl5b287rkb5x2qa88zs0k";
|
|
};
|
|
|
|
buildInputs = [ vapoursynth ];
|
|
|
|
buildPhase = ''
|
|
c++ -std=c++11 -shared -fPIC -O2 -I${vapoursynth.dev}/include/vapoursynth \
|
|
descale.cpp -o libdescale${ext}
|
|
'';
|
|
|
|
outputs = [ "out" ];
|
|
|
|
installPhase = ''
|
|
install -D libdescale${ext} $out/lib/vapoursynth/libdescale${ext}
|
|
install -D descale.py $out/lib/${python.libPrefix}/site-packages/descale.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "VapourSynth plugin to undo upscaling";
|
|
homepage = https://github.com/Irrational-Encoding-Wizardry/vapoursynth-descale;
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|