mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-23 01:12:25 +01:00
Simon Bruder
3ac96a0fb0
This is done to mirror what is done in nixpkgs (https://github.com/NixOS/nixpkgs/pull/170414).
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth, python }:
|
||
|
||
# required to make python.buildEnv use descale’s python module
|
||
python.pkgs.toPythonModule (stdenv.mkDerivation rec {
|
||
pname = "vapoursynth-descale";
|
||
version = "6";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "Irrational-Encoding-Wizardry";
|
||
repo = pname;
|
||
rev = "r${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/${python.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; [ sbruder tadeokondrak ];
|
||
platforms = platforms.all;
|
||
};
|
||
})
|