diff options
author | Constantine Glen Evans <cevans@evanslabs.org> | 2020-03-31 19:58:59 -0700 |
---|---|---|
committer | Constantine Glen Evans <cevans@evanslabs.org> | 2020-04-01 17:50:36 -0700 |
commit | cacbbe92bf7c1060279c94c6c78c0ef7e5eece48 (patch) | |
tree | df93380bfd14a64f05786cf5c6b5bb7603443109 | |
parent | f7ccd35422e5d77f35e95fd5bbc3b5865c5478b9 (diff) |
gwyddion: add darwin support
Gwyddion will build on Darwin, but gnome2.gtkglext is broken there,
and so I am disabling it as an optional dependency here when building
on Darwin.
-rw-r--r-- | pkgs/applications/science/chemistry/gwyddion/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/science/chemistry/gwyddion/default.nix b/pkgs/applications/science/chemistry/gwyddion/default.nix index cd8b93c9aac7..644f609ed0ac 100644 --- a/pkgs/applications/science/chemistry/gwyddion/default.nix +++ b/pkgs/applications/science/chemistry/gwyddion/default.nix @@ -12,7 +12,7 @@ zlibSupport ? true, zlib ? null, libuniqueSupport ? true, libunique ? null, libpngSupport ? true, libpng ? null, - openglSupport ? true + openglSupport ? !stdenv.isDarwin }: assert openexrSupport -> openexr != null; @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { buildInputs = with stdenv.lib; [ gtk2 fftw ] ++ - optionals openglSupport [gnome2.gtkglext] ++ + optional openglSupport gnome2.gtkglext ++ optional openexrSupport openexr ++ optional libXmuSupport xorg.libXmu ++ optional fitsSupport cfitsio ++ @@ -80,7 +80,7 @@ stdenv.mkDerivation rec { spectrophotometry. ''; license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; + platforms = with stdenv.lib.platforms; linux ++ darwin; maintainers = [ stdenv.lib.maintainers.cge ]; }; } |