2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, config
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cairo
|
|
|
|
, cmake
|
|
|
|
, opencv
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, cudaSupport ? config.cudaSupport or false
|
|
|
|
, cudaPackages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "frei0r-plugins";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://files.dyne.org/frei0r/releases/${pname}-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-RaKGVcrwVyJ7RCuADKOJnpNJBRXIHiEtIZ/fSnYT9cQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
opencv
|
|
|
|
pcre
|
|
|
|
] ++ lib.optionals cudaSupport [
|
|
|
|
cudaPackages.cuda_cudart
|
|
|
|
cudaPackages.cuda_nvcc
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2020-04-24 23:36:52 +00:00
|
|
|
for f in $out/lib/frei0r-1/*.so* ; do
|
|
|
|
ln -s $f "''${f%.*}.dylib"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://frei0r.dyne.org";
|
|
|
|
description = "Minimalist, cross-platform, shared video plugins";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|