mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-13 07:34:21 +00:00
ruby-modules/gem-config: add prometheus-client-mmap rust dependency
This commit is contained in:
parent
a0430d5fa9
commit
07ea0d4e67
@ -27,6 +27,7 @@
|
|||||||
, bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk
|
, bison, flex, pango, python3, patchelf, binutils, freetds, wrapGAppsHook, atk
|
||||||
, bundler, libsass, dart-sass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie
|
, bundler, libsass, dart-sass, libexif, libselinux, libsepol, shared-mime-info, libthai, libdatrie
|
||||||
, CoreServices, DarwinTools, cctools, libtool, discount, exiv2, libepoxy, libxkbcommon, libmaxminddb, libyaml
|
, CoreServices, DarwinTools, cctools, libtool, discount, exiv2, libepoxy, libxkbcommon, libmaxminddb, libyaml
|
||||||
|
, cargo, rustc, rustPlatform
|
||||||
, autoSignDarwinBinariesHook, fetchpatch
|
, autoSignDarwinBinariesHook, fetchpatch
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
@ -296,6 +297,33 @@ in
|
|||||||
in ''
|
in ''
|
||||||
substituteInPlace lib/prometheus/client/page_size.rb --replace "getconf" "${lib.getBin getconf}/bin/getconf"
|
substituteInPlace lib/prometheus/client/page_size.rb --replace "getconf" "${lib.getBin getconf}/bin/getconf"
|
||||||
'';
|
'';
|
||||||
|
} // lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
|
||||||
|
cargoRoot = "ext/fast_mmaped_file_rs";
|
||||||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
src = stdenv.mkDerivation {
|
||||||
|
inherit (buildRubyGem { inherit (attrs) gemName version source; })
|
||||||
|
name
|
||||||
|
src
|
||||||
|
unpackPhase
|
||||||
|
nativeBuildInputs
|
||||||
|
;
|
||||||
|
dontBuilt = true;
|
||||||
|
installPhase = ''
|
||||||
|
cp -R ext/fast_mmaped_file_rs $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
hash = "sha256-XuQZPbFWqPHlrJvllkvLl1FjKeoAUbi8oKDrS2rY1KM=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.bindgenHook
|
||||||
|
];
|
||||||
|
preBuild = ''
|
||||||
|
cat ../.cargo/config > ext/fast_mmaped_file_rs/.cargo/config.toml
|
||||||
|
sed -i "s|cargo-vendor-dir|$PWD/../cargo-vendor-dir|" ext/fast_mmaped_file_rs/.cargo/config.toml
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
glib2 = attrs: {
|
glib2 = attrs: {
|
||||||
|
Loading…
Reference in New Issue
Block a user