diff options
author | AndersonTorres <torres.anderson.85@gmail.com> | 2014-08-09 17:13:21 -0300 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-09-04 20:44:05 +0400 |
commit | 40b13e798b9bdeb614865f67f961af1b825c2325 (patch) | |
tree | 301a847eea0c2fdd3f517bd0e715a2f2807047fd /pkgs/development/libraries/cimg | |
parent | 014f7ad100458bba6fc15184bb605851c0ca0181 (diff) | |
download | nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar.gz nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar.bz2 nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar.lz nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar.xz nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.tar.zst nixlib-40b13e798b9bdeb614865f67f961af1b825c2325.zip |
CImg and WxCam - New Packages #3519
In this commit, I'm including two new softwares * CImg: A small, simple image toolkit library * WxCam: a small, simple, wxGTK-based webcam application
Diffstat (limited to 'pkgs/development/libraries/cimg')
-rw-r--r-- | pkgs/development/libraries/cimg/builder.sh | 12 | ||||
-rw-r--r-- | pkgs/development/libraries/cimg/default.nix | 27 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cimg/builder.sh b/pkgs/development/libraries/cimg/builder.sh new file mode 100644 index 000000000000..bbd5f7125517 --- /dev/null +++ b/pkgs/development/libraries/cimg/builder.sh @@ -0,0 +1,12 @@ + +source $stdenv/setup + +unpackPhase +cd $sourceRoot + +install -dm 755 $out/include/cimg $out/share/doc/cimg/html $out/share/cimg/examples $out/share/cimg/plugins + +install -m 644 CImg.h $out/include/cimg +cp -dr --no-preserve=ownership html/* $out/share/doc/cimg/html/ +cp -dr --no-preserve=ownership examples/* $out/share/cimg/examples/ +cp -dr --no-preserve=ownership plugins/* $out/share/cimg/plugins/ diff --git a/pkgs/development/libraries/cimg/default.nix b/pkgs/development/libraries/cimg/default.nix new file mode 100644 index 000000000000..17b18e8f0be8 --- /dev/null +++ b/pkgs/development/libraries/cimg/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl +, unzip +}: + +stdenv.mkDerivation rec { + + name = "cimg-${version}"; + version = "1.5.9"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/project/cimg/CImg-${version}.zip"; + sha256 = "1xn20643gcbl76kvy9ajhwbyjjb73mg65q32ma8mdkwn1qhn7f7c"; + }; + + buildInputs = with stdenv.lib; + [ unzip ]; + + builder = ./builder.sh; + + meta = with stdenv.lib; { + description = "A small, open source, C++ toolkit for image processing"; + homepage = http://cimg.sourceforge.net/; + license = licenses.cecill-c; + maintainers = [ maintainers.AndersonTorres ]; + platforms = platforms.linux; + }; +} |