2021-01-22 17:10:08 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, vapoursynth }:
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
ext = stdenv.targetPlatform.extensions.sharedLibrary;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "vapoursynth-autocrop";
|
|
|
|
version = "0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Irrational-Encoding-Wizardry";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "15ph5w78d0p56n6x5ys24a1n0xs1bd1fbc783349px1l8606h1ac";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ vapoursynth ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2019-06-26 01:57:16 +02:00
|
|
|
c++ -std=c++11 -shared -fPIC -O2 -I${vapoursynth}/include/vapoursynth \
|
2019-06-26 01:40:02 +02:00
|
|
|
autocrop.cpp -o libautocrop${ext}
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D libautocrop${ext} $out/lib/vapoursynth/libautocrop${ext}
|
|
|
|
'';
|
|
|
|
|
2021-01-22 17:10:08 +01:00
|
|
|
meta = with lib; {
|
2019-06-26 01:40:02 +02:00
|
|
|
description = "Autocrop for VapourSynth";
|
2021-01-22 17:22:37 +01:00
|
|
|
homepage = "https://github.com/Irrational-Encoding-Wizardry/vapoursynth-autocrop";
|
2019-06-26 01:40:02 +02:00
|
|
|
license = licenses.unfree; # no license
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|