mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
f7f938a1d1
getAttr was ambiguous. It's also a builtin function fix svn path=/nixpkgs/trunk/; revision=15692
34 lines
793 B
Nix
34 lines
793 B
Nix
args :
|
|
let
|
|
lib = args.lib;
|
|
fetchurl = args.fetchurl;
|
|
fullDepEntry = args.fullDepEntry;
|
|
|
|
version = lib.attrByPath ["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";
|
|
};
|
|
}
|