mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-13 07:34:21 +00:00
Merge pull request #300763 from b-rodrigues/fix_ngchm
rPackages.NGCHM: fixed build
This commit is contained in:
commit
26284122d9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user