voms: default to symlink $out/etc to /etc
This commit is contained in:
parent
5a6722b0e1
commit
f0b4a5da47
|
@ -11,6 +11,10 @@
|
||||||
, gsoap
|
, gsoap
|
||||||
, openssl
|
, openssl
|
||||||
, zlib
|
, zlib
|
||||||
|
# Configuration overridable with .override
|
||||||
|
# If not null, the builder will
|
||||||
|
# move "$out/etc" to "$out/etc.orig" and symlink "$out/etc" to externalEtc.
|
||||||
|
, externalEtc ? "/etc"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec{
|
||||||
|
@ -24,6 +28,10 @@ stdenv.mkDerivation rec{
|
||||||
hash = "sha256-FG4fHO2lsQ3t/ZaKT9xY+xqdQHfdtzi5ULtxLhdPnss=";
|
hash = "sha256-FG4fHO2lsQ3t/ZaKT9xY+xqdQHfdtzi5ULtxLhdPnss=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit externalEtc;
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook
|
autoreconfHook
|
||||||
bison
|
bison
|
||||||
|
@ -59,6 +67,13 @@ stdenv.mkDerivation rec{
|
||||||
"--with-gsoap-wsdl2h=${gsoap}/bin/wsdl2h"
|
"--with-gsoap-wsdl2h=${gsoap}/bin/wsdl2h"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
${lib.optionalString (externalEtc != null) ''
|
||||||
|
mv "$out"/etc{,.orig}
|
||||||
|
ln -s ${lib.escapeShellArg externalEtc} "$out/etc"
|
||||||
|
''}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The C/C++ VOMS server, client and APIs v2.x";
|
description = "The C/C++ VOMS server, client and APIs v2.x";
|
||||||
homepage = "https://italiangrid.github.io/voms/";
|
homepage = "https://italiangrid.github.io/voms/";
|
||||||
|
|
Loading…
Reference in a new issue