2021-04-05 15:23:46 +00:00
|
|
|
{ lib, stdenv, bzip2, zlib, autoconf, automake, cmake, gnumake, help2man , texinfo, libtool , cppzmq , libarchive, avro-cpp, boost, jansson, zeromq, openssl, pam, libiodbc, libkrb5, gcc, libcxx, which, catch2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Common attributes of irods packages
|
|
|
|
|
|
|
|
{
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake cmake gnumake help2man texinfo which gcc ];
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ bzip2 zlib libtool cppzmq libarchive avro-cpp jansson zeromq openssl pam libiodbc libkrb5 boost libcxx catch2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CLANG=${stdenv.cc}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CLANG_RUNTIME=${stdenv.cc}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_ARCHIVE=${libarchive.lib}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_AVRO=${avro-cpp}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_BOOST=${boost}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_JANSSON=${jansson}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_ZMQ=${zeromq}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CPPZMQ=${cppzmq}"
|
2020-05-15 21:57:56 +00:00
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CATCH2=${catch2}"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DIRODS_LINUX_DISTRIBUTION_NAME=nix"
|
|
|
|
"-DIRODS_LINUX_DISTRIBUTION_VERSION_MAJOR=${builtins.nixVersion}"
|
|
|
|
"-DCPACK_GENERATOR=TGZ"
|
|
|
|
"-DCMAKE_CXX_FLAGS=-I${libcxx}/include/c++/v1"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./packaging
|
|
|
|
patchShebangs ./scripts
|
|
|
|
substituteInPlace CMakeLists.txt --replace "DESTINATION usr/bin" "DESTINATION bin"
|
|
|
|
substituteInPlace CMakeLists.txt --replace "INCLUDE_DIRS usr/include/" "INCLUDE_DIRS include/"
|
|
|
|
substituteInPlace CMakeLists.txt --replace "DESTINATION usr/lib/" "DESTINATION lib/"
|
|
|
|
export cmakeFlags="$cmakeFlags
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$out
|
|
|
|
"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Integrated Rule-Oriented Data System (iRODS)";
|
|
|
|
longDescription = ''
|
|
|
|
The Integrated Rule-Oriented Data System (iRODS) is open source data management
|
|
|
|
software used by research organizations and government agencies worldwide.
|
|
|
|
iRODS is released as a production-level distribution aimed at deployment in mission
|
|
|
|
critical environments. It virtualizes data storage resources, so users can take
|
|
|
|
control of their data, regardless of where and on what device the data is stored.
|
|
|
|
As data volumes grow and data services become more complex, iRODS is increasingly
|
|
|
|
important in data management. The development infrastructure supports exhaustive
|
|
|
|
testing on supported platforms; plug-in support for microservices, storage resources,
|
|
|
|
drivers, and databases; and extensive documentation, training and support services.'';
|
|
|
|
homepage = "https://irods.org";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|