vs-overlay/plugins/continuityfixer/default.nix
Simon Bruder 74b6413005 vapoursynthPlugins: stdenv.lib -> lib
stdenv.lib is deprecated and nixpkgs is currently switching to lib.
2021-05-29 16:30:09 -06:00

35 lines
920 B
Nix

{ lib, stdenv, fetchFromGitHub, vapoursynth }:
let
ext = stdenv.targetPlatform.extensions.sharedLibrary;
in stdenv.mkDerivation rec {
pname = "vs-continuityfixer";
version = "6.1";
src = fetchFromGitHub {
owner = "MonoS";
repo = "VS-ContinuityFixer";
rev = "V6";
sha256 = "1hkbmfvs4zkr9177qsai012ba4iqj0vb7gw2ngvgcn0px92vclgw";
};
buildInputs = [ vapoursynth ];
buildPhase = ''
c++ -shared -fPIC -O2 -msse2 -mfpmath=sse -I${vapoursynth}/include/vapoursynth \
continuity.cpp -o continuity${ext}
'';
installPhase = ''
install -D continuity${ext} $out/lib/vapoursynth/continuity${ext}
'';
meta = with lib; {
description = "Continuity Fixer port for Vapoursynth";
homepage = https://github.com/MonoS/VS-ContinuityFixer;
license = licenses.unfree; # no license
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}