diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-01-27 20:40:44 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-01-27 20:40:44 +0000 |
commit | 415b2bb145c45a567eebb49bd526a071e38ee620 (patch) | |
tree | 2cef01f4e4f8f6c7fdcdde45cf3e15af4eeabf69 /pkgs/development/libraries/cppnetlib | |
parent | 999502f95c07761a6288f792b9e65b9c3ded2116 (diff) |
Adding cppnetlib 0.9.2. The last I found in their github.
svn path=/nixpkgs/trunk/; revision=31901
Diffstat (limited to 'pkgs/development/libraries/cppnetlib')
-rw-r--r-- | pkgs/development/libraries/cppnetlib/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cppnetlib/default.nix b/pkgs/development/libraries/cppnetlib/default.nix new file mode 100644 index 0000000000000..3eab580c6a892 --- /dev/null +++ b/pkgs/development/libraries/cppnetlib/default.nix @@ -0,0 +1,40 @@ +{stdenv, fetchurl, cmake, openssl, boost}: + +stdenv.mkDerivation rec { + name = "cpp-netlib-0.9.2"; + + src = fetchurl { + url = "https://github.com/downloads/cpp-netlib/cpp-netlib/${name}.tar.bz2"; + sha256 = "0llmiyp9l7byavwdyb7vpks27yfv3g85170bm81paps748bcyb1p"; + }; + + buildInputs = [ cmake boost openssl ]; + + /* Tests fail to build ... + https://github.com/cpp-netlib/cpp-netlib/issues/85 + + Once working, we could do: + checkTarget = "test"; + doCheck = true; + */ + + preConfigure = '' + sed -i /test/d CMakeLists.txt + ''; + + /* The build phase just builds examples. That's at least some testing. + That's how to install the lib - copy the headers. */ + installPhase = '' + # We are at sourcepath/build + mkdir -p $out/include + cp -R ../boost $out/include/ + mkdir -p $out/lib + cp -R libs/network/src/*.a $out/lib/ + ''; + + meta = { + homepage = http://cpp-netlib.github.com/; + description = "Provides application layer network support at boost style"; + license = "boost"; + }; +} |