10 openexrSupport ? true,
14 libxml2Support ? true,
16 libwebpSupport ? true,
18 # libXmu is not used if libunique is.
19 libXmuSupport ? false,
21 libxsltSupport ? true,
27 libuniqueSupport ? true,
31 openglSupport ? !stdenv.hostPlatform.isDarwin,
35 stdenv.mkDerivation rec {
39 url = "mirror://sourceforge/gwyddion/gwyddion-${version}.tar.xz";
40 sha256 = "sha256-kK6vTeADc2lrC+9KgqxFtih62ce3rKYkkGjU0qT8jWE=";
53 ++ lib.optionals openglSupport [
57 ++ lib.optional openexrSupport openexr
58 ++ lib.optional libXmuSupport xorg.libXmu
59 ++ lib.optional fitsSupport cfitsio
60 ++ lib.optional libpngSupport libpng
61 ++ lib.optional libxsltSupport libxslt
62 ++ lib.optional libxml2Support libxml2
63 ++ lib.optional libwebpSupport libwebp
64 ++ lib.optional zlibSupport zlib
65 ++ lib.optional libuniqueSupport libunique
66 ++ lib.optional libzipSupport libzip;
68 # This patch corrects problems with python support, but should apply cleanly
69 # regardless of whether python support is enabled, and have no effects if
71 patches = [ ./codegen.patch ];
73 homepage = "http://gwyddion.net/";
75 description = "Scanning probe microscopy data visualization and analysis";
78 A modular program for SPM (scanning probe microscopy) data
79 visualization and analysis. Primarily it is intended for the
80 analysis of height fields obtained by scanning probe microscopy
81 techniques (AFM, MFM, STM, SNOM/NSOM) and it supports a lot of
82 SPM data formats. However, it can be used for general height
83 field and (greyscale) image processing, for instance for the
84 analysis of profilometry data or thickness maps from imaging
87 license = lib.licenses.gpl2;
88 platforms = with lib.platforms; linux ++ darwin;
90 # never built on aarch64-darwin since first introduction in nixpkgs
91 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;