{ config, home, libs, pkgs, ... }:

{
  home.packages = with pkgs.chickenPackages_5.chickenEggs; [
    apropos
    chicken-doc
    chicken-update
    coops
    csm
    edn
    lsp-server
    mistie
    nanomsg
    r7rs
    salmonella
    srfi-1
    srfi-18
    srfi-69
    srfi-197
    utf8
  ] ++ (with pkgs; [
    chicken
    # (chicken.overrideAttrs (final: previous: {
    #   buildInputs = previous.buildInputs ++ [ curl ];
    #   # assets = fetchurl {
    #   #   url = "https://3e8.org/pub/chicken-doc/chicken-doc-repo-5.tgz";
    #   #   sha256 = "sha256-3fwcepem+1xj5UlQ+fCjvjHVtE8LO5co2A0k5gx5cZU=";
    #   # };
    #   postBuild = (previous.postBuild or "") + ''
    #   curl https://3e8.org/pub/chicken-doc/chicken-doc-repo-5.tgz;
    #   '';
    #   postInstall = (previous.postInstall or "") + ''
    #   tar zxf chicken-doc-repo-5.tgz -C cd `csi -R chicken.platform -p '(chicken-home)'`;
    #   '';
    # }))
  ]);
}