mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
gem-config: patch getconf path in prometheus-client-mmap
This commit is contained in:
parent
edc47cb999
commit
75a7e0edea
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user