2021-09-01 15:02:09 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cairo, cmake, opencv, pcre, pkg-config }:
|
2014-07-27 10:28:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "frei0r-plugins";
|
2021-09-01 15:02:09 +00:00
|
|
|
version = "1.7.0";
|
2014-07-27 10:28:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://files.dyne.org/frei0r/releases/${pname}-${version}.tar.gz";
|
2021-09-01 15:02:09 +00:00
|
|
|
hash = "sha256-Gx/48Pm8I+7XJOlOmnwdjwJEv+M0JLtP5o5kYMCIUjo=";
|
2014-07-27 10:28:02 +00:00
|
|
|
};
|
|
|
|
|
2021-09-01 15:02:09 +00:00
|
|
|
# A PR to add support for OpenCV 4 was merged in May 2020. This
|
|
|
|
# patch can be removed when a release beyond 1.7.0 is issued.
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "opencv4-support.patch";
|
|
|
|
url = "https://github.com/dyne/frei0r/commit/c0c8eed79fc8abe6c9881a53d7391efb526a3064.patch";
|
|
|
|
sha256 = "sha256-qxUAui4EEBEj8M/SoyMUkj//KegMTTT6FTBDC/Chxz4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ cairo opencv pcre ];
|
2019-05-04 00:10:42 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2019-05-04 00:10:42 +00:00
|
|
|
for f in $out/lib/frei0r-1/*.so* ; do
|
|
|
|
ln -s $f "''${f%.*}.dylib"
|
|
|
|
done
|
|
|
|
'';
|
2014-07-27 10:28:02 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://frei0r.dyne.org";
|
2014-07-27 10:28:02 +00:00
|
|
|
description = "Minimalist, cross-platform, shared video plugins";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2019-05-04 00:10:42 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-07-27 10:28:02 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|