tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
vigra: 1.11.1 → unstable-2022-01-11
Fabián Heredia Montiel
4 years ago
7022bcf5
2b730c8d
+3
-15
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
vigra
default.nix
+3
-15
pkgs/development/libraries/vigra/default.nix
reviewed
···
1
1
{ lib
2
2
, stdenv
3
3
, fetchFromGitHub
4
4
-
, fetchurl
5
4
, boost
6
5
, cmake
7
6
, fftw
···
19
20
in
20
21
stdenv.mkDerivation rec {
21
22
pname = "vigra";
22
22
-
version = "1.11.1";
23
23
+
version = "unstable-2022-01-11";
23
24
24
25
src = fetchFromGitHub {
25
26
owner = "ukoethe";
26
27
repo = "vigra";
27
27
-
rev = "Version-${lib.replaceChars ["."] ["-"] version}";
28
28
-
sha256 = "sha256-tD6tdoT4mWBtzkn4Xv3nNIkBQmeqNqzI1AVxUbP76Mk=";
28
28
+
rev = "093d57d15c8c237adf1704d96daa6393158ce299";
29
29
+
sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og=";
29
30
};
30
31
31
32
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
32
32
-
33
33
-
# Fixes compilation with clang (on darwin) see https://github.com/ukoethe/vigra/issues/414
34
34
-
patches =
35
35
-
let clangPatch = fetchurl {
36
36
-
url = "https://github.com/ukoethe/vigra/commit/81958d302494e137f98a8b1d7869841532f90388.patch";
37
37
-
sha256 = "1i1w6smijgb5z8bg9jaq84ccy00k2sxm87s37lgjpyix901gjlgi";
38
38
-
};
39
39
-
in [ clangPatch ];
40
33
41
34
nativeBuildInputs = [ cmake ];
42
35
buildInputs = [
···
49
58
cmakeFlags = [ "-DWITH_OPENEXR=1" ]
50
59
++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux")
51
60
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
52
52
-
53
53
-
# fails with "./test_watersheds3d: error while loading shared libraries: libvigraimpex.so.11: cannot open shared object file: No such file or directory"
54
54
-
doCheck = false;
55
61
56
62
meta = with lib; {
57
63
description = "Novel computer vision C++ library with customizable algorithms and data structures";