gem-config: patch getconf path in prometheus-client-mmap

This commit is contained in:
Yureka 2023-05-25 09:25:14 +02:00
parent edc47cb999
commit 75a7e0edea

View file

@ -283,6 +283,15 @@ in
meta.mainProgram = "rbprettier";
};
prometheus-client-mmap = attrs: {
dontBuild = false;
postPatch = let
getconf = if stdenv.hostPlatform.isGnu then stdenv.cc.libc else getconf;
in ''
substituteInPlace lib/prometheus/client/page_size.rb --replace "getconf" "${lib.getBin getconf}/bin/getconf"
'';
};
glib2 = attrs: {
nativeBuildInputs = [ pkg-config ]
++ lib.optionals stdenv.isDarwin [ DarwinTools ];