nixpkgs/pkgs/development/libraries/libcv/default.nix
Eelco Dolstra fcad0b0a5a * Cleaned up a lot of description fields that contained newlines.
Some of these should be longDescriptions, but most others just
  shouldn't contain newlines.  E.g. write

    description = "Bla";

  and not

    description = ''
      Bla
    '';

  This pollutes "nix-env -qa --description" output.

svn path=/nixpkgs/trunk/; revision=14310
2009-03-03 13:27:40 +00:00

34 lines
790 B
Nix

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";
};
}