Merge pull request #300763 from b-rodrigues/fix_ngchm

rPackages.NGCHM: fixed build
This commit is contained in:
Justin Bedő 2024-04-02 09:20:52 +11:00 committed by GitHub
commit 26284122d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1081,6 +1081,14 @@ let
'';
});
NGCHM = old.NGCHM.overrideAttrs (attrs: {
postPatch = ''
substituteInPlace "inst/base.config/conf.d/01-server-protocol-scl.R" \
--replace-fail \
"/bin/hostname" "${lib.getBin pkgs.hostname}/bin/hostname"
'';
});
ModelMetrics = old.ModelMetrics.overrideAttrs (attrs: {
env = (attrs.env or { }) // {
NIX_CFLAGS_COMPILE = attrs.env.NIX_CFLAGS_COMPILE + lib.optionalString stdenv.isDarwin " -fopenmp";