nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / av / avisynthplus / package.nix
blob92904ff0cc01f6784287f8d03db421bf52f4a4f1
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   testers,
6   cmake,
7   gitUpdater,
8   fetchpatch,
9   libdevil,
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "avisynthplus";
14   version = "3.7.3";
16   src = fetchFromGitHub {
17     owner = "AviSynth";
18     repo = "AviSynthPlus";
19     rev = "v${finalAttrs.version}";
20     hash = "sha256-v/AErktcegdrwxDbD0DZ/ZAxgaZmkZD+qxR3EPFsT08=";
21   };
23   patches = [
24     # Remove after next relaese
25     (fetchpatch {
26       name = "fix-absolute-path.patch";
27       url = "https://github.com/AviSynth/AviSynthPlus/commit/818983691e962ec3e590fcad07032f8a139a6b16.patch";
28       hash = "sha256-4yUOnjtOroX+bhNUKbYz/giKaslzYdwPaaJWNkrTBr4=";
29     })
30   ];
32   buildInputs = [ libdevil ];
34   nativeBuildInputs = [ cmake ];
36   passthru = {
37     updateScript = gitUpdater { rev-prefix = "v"; };
38     tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
39   };
41   meta = with lib; {
42     description = "Improved version of the AviSynth frameserver";
43     homepage = "https://avs-plus.net/";
44     changelog = "https://github.com/AviSynth/AviSynthPlus/releases/tag/${finalAttrs.src.rev}";
45     license = licenses.gpl2Only;
46     pkgConfigModules = [ "avisynth" ];
47     platforms = platforms.unix;
48     maintainers = with maintainers; [ jopejoe1 ];
49   };