2022-02-24 21:38:48 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Native build inputs
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, pkg-config
|
|
|
|
# Build inputs
|
|
|
|
, expat
|
|
|
|
, gsoap
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
|
|
|
pname = "voms-unstable";
|
2022-07-07 03:14:57 +02:00
|
|
|
version = "2022-06-14";
|
2022-02-24 21:38:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "italiangrid";
|
|
|
|
repo = "voms";
|
2022-07-07 03:14:57 +02:00
|
|
|
rev = "8e99bb96baaf197f0f557836e2829084bb1bb00e"; # develop branch
|
|
|
|
hash = "sha256-FG4fHO2lsQ3t/ZaKT9xY+xqdQHfdtzi5ULtxLhdPnss=";
|
2022-02-24 21:38:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
|
|
|
gsoap
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
mkdir -p aux src/autogen
|
|
|
|
'';
|
|
|
|
|
|
|
|
postAutoreconf = ''
|
|
|
|
# FHS patching
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "/usr/bin/soapcpp2" "${gsoap}/bin/soapcpp2"
|
|
|
|
|
|
|
|
# Tell gcc about the location of zlib
|
|
|
|
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=voms
|
|
|
|
export GSOAP_SSL_PP_CFLAGS="$(pkg-config --cflags gsoapssl++ zlib)"
|
|
|
|
export GSOAP_SSL_PP_LIBS="$(pkg-config --libs gsoapssl++ zlib)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-gsoap-wsdl2h=${gsoap}/bin/wsdl2h"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-07-10 20:12:38 +02:00
|
|
|
description = "The C/C++ VOMS server, client and APIs v2.x";
|
2022-02-24 21:38:48 +01:00
|
|
|
homepage = "https://italiangrid.github.io/voms/";
|
|
|
|
changelog = "https://github.com/italiangrid/voms/blob/master/ChangeLog";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux; # gsoap is currently Linux-only in Nixpkgs
|
|
|
|
maintainers = with maintainers; [ ShamrockLee ];
|
|
|
|
};
|
|
|
|
}
|