summary refs log tree commit diff
path: root/pkgs/development/libraries/frei0r/default.nix
blob: c4f99346296483d4b9ef9081d820add99690a161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchurl, autoconf, cairo, opencv, pkg-config }:

stdenv.mkDerivation rec {
  pname = "frei0r-plugins";
  version = "1.6.1";

  src = fetchurl {
    url = "https://files.dyne.org/frei0r/releases/${pname}-${version}.tar.gz";
    sha256 = "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0";
  };

  nativeBuildInputs = [ autoconf pkg-config ];
  buildInputs = [ cairo opencv ];

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
    for f in $out/lib/frei0r-1/*.so* ; do
      ln -s $f "''${f%.*}.dylib"
    done
  '';

  meta = with lib; {
    homepage = "https://frei0r.dyne.org";
    description = "Minimalist, cross-platform, shared video plugins";
    license = licenses.gpl2;
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.linux ++ platforms.darwin;

  };
}