nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, config
3, stdenv
4, fetchurl
5, cairo
6, cmake
7, opencv
8, pcre
9, pkg-config
10, cudaSupport ? config.cudaSupport or false
11, cudaPackages
12}:
13
14stdenv.mkDerivation rec {
15 pname = "frei0r-plugins";
16 version = "1.8.0";
17
18 src = fetchurl {
19 url = "https://files.dyne.org/frei0r/releases/${pname}-${version}.tar.gz";
20 hash = "sha256-RaKGVcrwVyJ7RCuADKOJnpNJBRXIHiEtIZ/fSnYT9cQ=";
21 };
22
23 nativeBuildInputs = [ cmake pkg-config ];
24 buildInputs = [
25 cairo
26 opencv
27 pcre
28 ] ++ lib.optionals cudaSupport [
29 cudaPackages.cuda_cudart
30 cudaPackages.cuda_nvcc
31 ];
32
33 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
34 for f in $out/lib/frei0r-1/*.so* ; do
35 ln -s $f "''${f%.*}.dylib"
36 done
37 '';
38
39 meta = with lib; {
40 homepage = "https://frei0r.dyne.org";
41 description = "Minimalist, cross-platform, shared video plugins";
42 license = licenses.gpl2Plus;
43 maintainers = [ maintainers.goibhniu ];
44 platforms = platforms.linux ++ platforms.darwin;
45 };
46}