forked from mirrors/nixpkgs
frei0r-plugins: 1.6.1 -> 1.7.0
- Switched the build from autoconf to cmake as this build path receives more attention by upstream developers. - Include a PR that adds OpenCV 4 compatibility to better fit with nixpkgs. This is not a recent PR, but no releases have been made in quite some time.
This commit is contained in:
parent
21c937f8cb
commit
ebda1da2cf
|
@ -1,16 +1,26 @@
|
|||
{ lib, stdenv, fetchurl, autoconf, cairo, opencv, pkg-config }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, cairo, cmake, opencv, pcre, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "frei0r-plugins";
|
||||
version = "1.6.1";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://files.dyne.org/frei0r/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0";
|
||||
hash = "sha256-Gx/48Pm8I+7XJOlOmnwdjwJEv+M0JLtP5o5kYMCIUjo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf pkg-config ];
|
||||
buildInputs = [ cairo opencv ];
|
||||
# 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 ];
|
||||
|
||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
for f in $out/lib/frei0r-1/*.so* ; do
|
||||
|
|
Loading…
Reference in a new issue