tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
voms: default to symlink $out/etc to /etc
Shamrock Lee
3 years ago
f0b4a5da
5a6722b0
+15
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
voms
default.nix
+15
pkgs/tools/networking/voms/default.nix
···
11
, gsoap
12
, openssl
13
, zlib
0
0
0
0
14
}:
15
16
stdenv.mkDerivation rec{
···
22
repo = "voms";
23
rev = "8e99bb96baaf197f0f557836e2829084bb1bb00e"; # develop branch
24
hash = "sha256-FG4fHO2lsQ3t/ZaKT9xY+xqdQHfdtzi5ULtxLhdPnss=";
0
0
0
0
25
};
26
27
nativeBuildInputs = [
···
58
configureFlags = [
59
"--with-gsoap-wsdl2h=${gsoap}/bin/wsdl2h"
60
];
0
0
0
0
0
0
0
61
62
meta = with lib; {
63
description = "The C/C++ VOMS server, client and APIs v2.x";
···
11
, gsoap
12
, openssl
13
, zlib
14
+
# Configuration overridable with .override
15
+
# If not null, the builder will
16
+
# move "$out/etc" to "$out/etc.orig" and symlink "$out/etc" to externalEtc.
17
+
, externalEtc ? "/etc"
18
}:
19
20
stdenv.mkDerivation rec{
···
26
repo = "voms";
27
rev = "8e99bb96baaf197f0f557836e2829084bb1bb00e"; # develop branch
28
hash = "sha256-FG4fHO2lsQ3t/ZaKT9xY+xqdQHfdtzi5ULtxLhdPnss=";
29
+
};
30
+
31
+
passthru = {
32
+
inherit externalEtc;
33
};
34
35
nativeBuildInputs = [
···
66
configureFlags = [
67
"--with-gsoap-wsdl2h=${gsoap}/bin/wsdl2h"
68
];
69
+
70
+
postFixup = ''
71
+
${lib.optionalString (externalEtc != null) ''
72
+
mv "$out"/etc{,.orig}
73
+
ln -s ${lib.escapeShellArg externalEtc} "$out/etc"
74
+
''}
75
+
'';
76
77
meta = with lib; {
78
description = "The C/C++ VOMS server, client and APIs v2.x";