2022-03-31 18:11:26 +00:00
|
|
|
{ lib, stdenv, bzip2, zlib, autoconf, automake, cmake, help2man, texinfo, libtool, cppzmq, libarchive
|
2023-09-05 11:07:05 +00:00
|
|
|
, avro-cpp, boost, zeromq, openssl, pam, libiodbc, libkrb5, gcc, libcxx, which, catch2, nanodbc, fmt
|
|
|
|
, nlohmann_json, spdlog, curl }:
|
2016-12-15 06:56:44 +00:00
|
|
|
|
|
|
|
# Common attributes of irods packages
|
|
|
|
|
|
|
|
{
|
2022-03-31 18:11:26 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake cmake help2man texinfo which gcc ];
|
2023-09-05 11:07:05 +00:00
|
|
|
buildInputs = [ bzip2 zlib libtool cppzmq libarchive avro-cpp zeromq openssl pam libiodbc libkrb5 boost
|
|
|
|
libcxx catch2 nanodbc fmt nlohmann_json spdlog curl ];
|
2016-12-15 06:56:44 +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_ZMQ=${zeromq}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CPPZMQ=${cppzmq}"
|
2020-05-05 15:33:21 +00:00
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_CATCH2=${catch2}"
|
2022-02-22 08:59:47 +00:00
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_NANODBC=${nanodbc}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_FMT=${fmt}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_JSON=${nlohmann_json}"
|
|
|
|
"-DIRODS_EXTERNALS_FULLPATH_SPDLOG=${spdlog}"
|
2016-12-15 06:56:44 +00:00
|
|
|
"-DIRODS_LINUX_DISTRIBUTION_NAME=nix"
|
2022-01-24 14:35:04 +00:00
|
|
|
"-DIRODS_LINUX_DISTRIBUTION_VERSION_MAJOR=1.0"
|
2016-12-15 06:56:44 +00:00
|
|
|
"-DCPACK_GENERATOR=TGZ"
|
llvmPackages: Multuple outputs for everythting
Also begin to start work on cross compilation, though that will have to
be finished later.
The patches are based on the first version of
https://reviews.llvm.org/D99484. It's very annoying to do the
back-porting but the review has uncovered nothing super major so I'm
fine sticking with what I've got.
Beyond making the outputs work, I also strove to re-sync the packages,
as they have been drifting pointlessly apart for some time.
----
Other misc notes, highly incomplete
- lvm-config-native and llvm-config are put in `dev` because they are
tools just for build time.
- Clang no longer has an lld dep. That was introduced in
db29857eb391ed002046090851a44c452b80bdbd, but if clang needs help
finding lld when it is used we should just pass it flags / put in the
resource dir. Providing it at build time increases critical path
length for no good reason.
----
A note on `nativeCC`:
`stdenv` takes tools from the previous stage, so:
1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.stdenv.cc`: `(?0, ?1, x)`
while:
1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.targetPackages`: `(x, x, ?2)`
3. `pkgsBuildBuild.targetPackages.stdenv.cc`: `(?1, x, x)`
2020-10-15 08:23:57 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=-I${lib.getDev libcxx}/include/c++/v1"
|
2024-03-18 14:48:37 +00:00
|
|
|
"-DPAM_LIBRARY=${pam}/lib/libpam.so"
|
2024-08-21 14:34:50 +00:00
|
|
|
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DIRODS_HOME_DIRECTORY=${placeholder "out"}"
|
|
|
|
"-DCMAKE_INSTALL_SBINDIR=${placeholder "out"}/sbin"
|
2016-12-15 06:56:44 +00:00
|
|
|
];
|
|
|
|
|
2022-02-22 08:59:47 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./packaging ./scripts
|
2016-12-15 06:56:44 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-27 10:21:31 +00:00
|
|
|
meta = with lib; {
|
2016-12-15 06:56:44 +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.'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://irods.org";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-12-15 06:56:44 +00:00
|
|
|
};
|
|
|
|
}
|