32
pkgs/development/libraries/gloox/default.nix
Normal file
32
pkgs/development/libraries/gloox/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchurl
|
||||
, zlibSupport ? true, zlib ? null
|
||||
, sslSupport ? true, openssl ? null
|
||||
, idnSupport ? true, libidn ? null
|
||||
}:
|
||||
|
||||
assert zlibSupport -> zlib != null;
|
||||
assert sslSupport -> openssl != null;
|
||||
assert idnSupport -> libidn != null;
|
||||
|
||||
let
|
||||
version = "1.0.10";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gloox-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://camaya.net/download/gloox-${version}.tar.bz2";
|
||||
sha256 = "300e756af97d43f3f70f1e68e4d4c7129d587dface61633f50d2c490876f58a3";
|
||||
};
|
||||
|
||||
buildInputs = [ ]
|
||||
++ stdenv.lib.optional zlibSupport zlib
|
||||
++ stdenv.lib.optional sslSupport openssl
|
||||
++ stdenv.lib.optional idnSupport libidn;
|
||||
|
||||
meta = {
|
||||
description = "A portable high-level Jabber/XMPP library for C++";
|
||||
homepage = "http://camaya.net/gloox";
|
||||
license = [ "GPLv3" ];
|
||||
};
|
||||
}
|
||||
41
pkgs/development/libraries/nvidia-texture-tools/default.nix
Normal file
41
pkgs/development/libraries/nvidia-texture-tools/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ stdenv, fetchsvn, cmake, libpng, ilmbase, libtiff, zlib, libjpeg
|
||||
, mesa, libX11
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
# No support yet for cg, cuda, glew, glut, openexr.
|
||||
|
||||
name = "nvidia-texture-tools";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "http://nvidia-texture-tools.googlecode.com/svn/trunk";
|
||||
rev = "1388";
|
||||
sha256 = "0pwxqx5l16nqidzm6mwd3rd4gbbknkz6q8cxnvf7sggjpbcvm2d6";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake libpng ilmbase libtiff zlib libjpeg mesa libX11 ];
|
||||
|
||||
patchPhase = ''
|
||||
# Fix build due to missing dependnecies.
|
||||
echo 'target_link_libraries(bc7 nvmath)' >> src/nvtt/bc7/CMakeLists.txt
|
||||
echo 'target_link_libraries(bc6h nvmath)' >> src/nvtt/bc6h/CMakeLists.txt
|
||||
|
||||
# Make a recently added pure virtual function just virtual,
|
||||
# to keep compatibility.
|
||||
sed -i 's/virtual void endImage() = 0;/virtual void endImage() {}/' src/nvtt/nvtt.h
|
||||
|
||||
# Fix building shared libraries.
|
||||
sed -i 's/SET(NVIMAGE_SHARED TRUE)/SET(NVIMAGE_SHARED TRUE)\nSET(NVTHREAD_SHARED TRUE)/' CMakeLists.txt
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DNVTT_SHARED=TRUE"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A set of cuda-enabled texture tools and compressors";
|
||||
homepage = "http://developer.nvidia.com/object/texture_tools.html";
|
||||
license = "MIT";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user