anchor.diff:      libxslt
       meson
       ninja
  +    pkgconfig
     ];
   
     buildInputs = [
  -    freeimage
       icu
  -    libGLU
  -    libjpeg_turbo
  -    librsvg
       libxkbcommon
  -    netsurf.libnsgif
       pango
  -    pkgconfig
  -    wayland
       inih
  -    libtiff
  -    libheif
  -    libpng
  -  ];
  +  ] ++ windowSystems."${withWindowSystem}"
  +    ++ builtins.map (b: backends."${b}") withBackends;
   
  -  postFixup = ''
  +  postFixup = lib.optionalString (withWindowSystem == "all") ''
       # The `bin/imv` script assumes imv-wayland or imv-x11 in PATH,
       # so we have to fix those to the binaries we installed into the /nix/store
   
  
positive.code: { asciidoc
  , cmocka
  , docbook_xsl
  , fetchFromGitHub
  , fontconfig
  , freeimage
  , icu
  , libGLU
  , libheif
  , libjpeg_turbo
  , libpng
  , librsvg
  , libtiff
  , libxkbcommon
  , libxslt
  , netsurf
  , pango
  , pkgconfig
  , stdenv
  , wayland
  , meson
  , ninja
  , inih
  }:
  
  stdenv.mkDerivation rec {
    pname = "imv";
  
negative.code:     sha256 = "07pcpppmfvvj0czfvp1cyq03ha0jdj4whl13lzvw37q3vpxs5qqh";
    };
  
    mesonFlags = [
      "-Dwindows=${withWindowSystem}"
      "-Dtest=enabled"
      "-Dman=enabled"
    ] ++ backendFlags;
  
    nativeBuildInputs = [
      asciidoc
      cmocka
  