anchor.diff:        libmysqlclient ncurses gtk2 lz4 rdma-core
         lua hwloc numactl readline freeipmi shadow.su
         pmix json_c libjwt libyaml dbus libbpf
  +      http-parser
     ] ++ lib.optionals enableX11 [ xorg.xauth ];
   
     configureFlags = with lib;
       [ "--with-freeipmi=${freeipmi}"
  +      "--with-http-parser=${http-parser}"
         "--with-hwloc=${hwloc.dev}"
         "--with-json=${json_c.dev}"
         "--with-jwt=${libjwt}"
  
positive.code: , libjwt
  , libyaml
  , json_c
  # enable internal X11 support via libssh2
  , enableX11 ? true
  }:
  
  stdenv.mkDerivation rec {
    pname = "slurm";
    version = "22.05.0.1";
  
    # N.B. We use github release tags instead of https://www.schedmd.com/downloads.php
    # because the latter does not keep older releases.
  
negative.code:     repo = "slurm";
      # The release tags use - instead of .
      rev = "${pname}-${builtins.replaceStrings ["."] ["-"] version}";
      sha256 = "034qnqvamb7v8gimybjr579442c37qwdq8i2kip6c0zhcl42bvaf";
    };
  
    outputs = [ "out" "dev" ];
  