mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
influxdb2-server: use structuredAttrs instead of passAsFile
This commit is contained in:
@@ -62,16 +62,18 @@ let
|
||||
Cflags: -I/out/include
|
||||
Libs: -L/out/lib -lflux -lpthread
|
||||
'';
|
||||
passAsFile = [ "pkgcfg" ];
|
||||
postInstall = ''
|
||||
mkdir -p $out/include $out/pkgconfig
|
||||
cp -r $NIX_BUILD_TOP/${finalAttrs.src.name}/libflux/include/influxdata $out/include
|
||||
substitute $pkgcfgPath $out/pkgconfig/flux.pc \
|
||||
printf "%s" "$pkgcfg" > $out/pkgconfig/flux.pc
|
||||
substituteInPlace $out/pkgconfig/flux.pc \
|
||||
--replace-fail /out $out
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
install_name_tool -id $out/lib/libflux.dylib $out/lib/libflux.dylib
|
||||
'';
|
||||
|
||||
__structuredAttrs = true;
|
||||
});
|
||||
in
|
||||
buildGoModule {
|
||||
|
||||
Reference in New Issue
Block a user