diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-10-23 14:52:21 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-10-23 14:52:21 +0000 |
commit | 6dc839d3445e66b259361f08838a8c05b1912e68 (patch) | |
tree | 5ef88f8fe4cb6f75cf0a1c1e821945c7186491c7 /pkgs/development/libraries/unicap/default.nix | |
parent | 4309788df022c89765cd7f6b178f4ce7a08db600 (diff) | |
parent | 327a2eae30b48277bd453842d03a144f618822b2 (diff) | |
download | nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar.gz nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar.bz2 nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar.lz nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar.xz nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.tar.zst nixlib-6dc839d3445e66b259361f08838a8c05b1912e68.zip |
Merging from trunk. I resolved some conflicts; I hope that well.
svn path=/nixpkgs/branches/stdenv-updates/; revision=24429
Diffstat (limited to 'pkgs/development/libraries/unicap/default.nix')
-rw-r--r-- | pkgs/development/libraries/unicap/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/libraries/unicap/default.nix b/pkgs/development/libraries/unicap/default.nix new file mode 100644 index 000000000000..7a64017ca8ba --- /dev/null +++ b/pkgs/development/libraries/unicap/default.nix @@ -0,0 +1,55 @@ +x@{builderDefsPackage + , libusb, libraw1394, dcraw, intltool, perl + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="libunicap"; + version="0.9.12"; + name="${baseName}-${version}"; + url="http://www.unicap-imaging.org/downloads/${name}.tar.gz"; + hash="05zcnnm4dfc6idihfi0fq5xka6x86zi89wip2ca19yz768sd33s9"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["fixIncludes" "fixMakefiles" "doConfigure" "doMakeInstall"]; + + fixIncludes = a.fullDepEntry ('' + find . -type f -exec sed -e '/linux\/types\.h/d' -i '{}' ';' + '') ["minInit" "doUnpack"]; + + fixMakefiles = a.fullDepEntry ('' + sed -e 's@/etc/udev@'"$out"'/&@' -i data/Makefile.* + '') ["minInit" "doUnpack"]; + + meta = { + description = "Universal video capture API"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://unicap-imaging.org/download.htm"; + }; + }; +}) x + |