summary refs log tree commit diff
path: root/pkgs/development/libraries/libcv/default.nix
blob: 55e235e180bd8f4cc5ef0195ca055357bd713b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
args :  
let 
  lib = args.lib;
  fetchurl = args.fetchurl;
  fullDepEntry = args.fullDepEntry;

  version = lib.getAttr ["version"] "" args; 
  buildInputs = with args; [
    libtiff libpng libjpeg pkgconfig 
    gtk glib
  ];
in
rec {
  src = fetchurl {
    url = ftp://ftp.debian.org/debian/pool/main/o/opencv/opencv_0.9.7.orig.tar.gz;
    sha256 = "14qnm59gn518gjxwjb9hm3ij0b1awlxa76qdvnn5ygxsx713lf2j";
  };

  inherit buildInputs;
  configureFlags = [];

  /* doConfigure should be specified separately */
  phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];

  postInstall = fullDepEntry (''
    ln -s $out/include/opencv/* $out/include
  '') ["doMakeInstall" "minInit"];
      
  name = "libcv-0.9.7";
  meta = {
    description = "libcv - computer vision library";
  };
}