git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24207 from acowley/octave-darwin-421

octave: fix on darwin

commitec2c337ec5c22b68154e3c0b5e8cbd297af32928 authorMichael Raskin <7c6f434c@mail.ru> dateWed 22 Mar 2017, 16:36 (10 years ago) parent8869816506a5df
1 file changed+6
pkgs/development/interpreters/octave/default.nix+6
pkgs/development/interpreters/octave/default.nix+6
@@ -41,6 +41,12 @@ stdenv.mkDerivation rec {
4141 ++ (stdenv.lib.optionals (!stdenv.isDarwin) [ mesa libX11 ])
4242 ;
4343
44+ # REMOVE ON VERSION BUMP
45+ # Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234
46+ prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
47+ sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc
48+ '';
49+
4450 doCheck = !stdenv.isDarwin;
4551
4652 enableParallelBuilding = true;