vs-overlay/plugins/descale/default.nix
Simon Bruder 7ad347ddc4 vapoursynthPlugins.descale: r2 -> r6
This also switches to meson as the build system and declares descale as
a python module.
2021-05-29 16:30:09 -06:00

35 lines
1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth, python3 }:
# required to make python3.buildEnv use descales python module
python3.pkgs.toPythonModule (stdenv.mkDerivation rec {
pname = "vapoursynth-descale";
version = "r6";
src = fetchFromGitHub {
owner = "Irrational-Encoding-Wizardry";
repo = pname;
rev = version;
sha256 = "093dk125y4gacvhrh10x1i5g2qbsjl4spz74gjjm7xbvrvi1sc72";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ vapoursynth ];
postPatch = ''
substituteInPlace meson.build \
--replace "vs.get_pkgconfig_variable('libdir')" "get_option('libdir')"
'';
postInstall = ''
install -D ../descale.py $out/${python3.sitePackages}/descale.py
'';
meta = with 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;
};
})