How to add HTTP::Request to my dependencies

I’m repackaging a Debian package for NixOS, and struggling with its Perl dependencies. Right now the problem is I can’t seem to find a package for the (AFAIR extremely common) HTTP::Request module. I tried installing HTTPRequestAsCGI, but that didn’t seem to work as a straight replacement:

Can’t locate HTTP/Request.pm in @INC (you may need to install the HTTP::Request module)

Does HTTPRequestAsCGI provide the HTTP::Request API? If so, how do I patch the existing sources to use it? If not, do I need to package HTTP::Request as well? Use something with a completely different name? Something else entirely?

  • system: "x86_64-linux"
  • host os: Linux 4.19.74, NixOS, 20.03pre193781.d484f2b7fc0 (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-20.03pre193781.d484f2b7fc0"
  • channels(username): "nixpkgs-20.03pre193309.c4196cca9ac"
  • nixpkgs: /home/username/.nix-defexpr/channels/nixpkgs

According to CPAN you might be looking for PerlPackages.HttpMessage, but I’m not familiar with the package so… :man_shrugging:

1 Like

Thank you very much @aanderse! For reference, the actual package name is “perlPackages.HTTPMessage”.

Great! Glad to hear it worked out.