summaryrefslogtreecommitdiff
path: root/imagemagick_my.nix
blob: d2665e8a75a0ded8d57e12f7ded1632f5ed43b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ inputs }:
self: super: {
  imagemagick_my =
    with super;
    (imagemagick.override {
      libjxlSupport = true;
      ghostscriptSupport = true;
      djvulibreSupport = true;
      libheif = self.libheif_my;
    }).overrideAttrs
      (old: rec {
        version = "git";
        src = fetchGit {
          url = "https://github.com/ImageMagick/ImageMagick";
          ref = "main";
#          rev = "d3678bd5b8f25846037f00d21aa6a75a3e8f5e87";
                    rev = "d7992582b93ef4e6f9ab2201a1cfbba43055a270";
        };
        configureFlags = old.configureFlags ++ [
          "--with-fftw"
          "--with-jbig"
          "--with-jxl"
        ];
        buildInputs = old.buildInputs ++ [
          fftw
          jbigkit
          libjxl
        ];
        patches = [ ];
        #        doCheck = false;
      });
}