summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Cowley <acowley@gmail.com>2021-09-01 11:02:09 -0400
committerAnthony Cowley <acowley@gmail.com>2021-09-01 16:56:42 -0400
commitebda1da2cf4de69c1878c3d3a6f8efbcde4e2932 (patch)
treeb6dfee56b262f395d8b1c6b546d302caf88e37cc
parent21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28 (diff)
downloadnixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar.gz
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar.bz2
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar.lz
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar.xz
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.tar.zst
nixpkgs-ebda1da2cf4de69c1878c3d3a6f8efbcde4e2932.zip
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.
-rw-r--r--pkgs/development/libraries/frei0r/default.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/development/libraries/frei0r/default.nix b/pkgs/development/libraries/frei0r/default.nix
index c4f99346296..ac2c43ce8db 100644
--- a/pkgs/development/libraries/frei0r/default.nix
+++ b/pkgs/development/libraries/frei0r/default.nix
@@ -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