Closed
Description
Nixpkgs version
- Stable (24.11)
Describe the bug
hplip plugin fetch step fails with error 403 when trying to download https://developers.hp.com/sites/default/files/hplip-3.24.4-plugin.run using curl with default user-agent.
To fix this set user-agent to Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
or download plugin from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
Steps to reproduce
# NIXPKGS_ALLOW_UNFREE=1 nix-shell -p hplipWithPlugin
these 2 derivations will be built:
/nix/store/3szdhxqbxk0npbf1ihqkdhqb7qidv6gj-hplip-3.24.4-plugin.run.drv
/nix/store/1bjgqk33yza4qbxdll593aidydwgd223-hplip-3.24.4.drv
building '/nix/store/3szdhxqbxk0npbf1ihqkdhqb7qidv6gj-hplip-3.24.4-plugin.run.drv'...
trying https://developers.hp.com/sites/default/files/hplip-3.24.4-plugin.run
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 403
error: cannot download hplip-3.24.4-plugin.run from any mirror
error: builder for '/nix/store/3szdhxqbxk0npbf1ihqkdhqb7qidv6gj-hplip-3.24.4-plugin.run.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/1bjgqk33yza4qbxdll593aidydwgd223-hplip-3.24.4.drv' failed to build
Expected behaviour
install hplip with plugin and enter to shell
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux"
- host os:
Linux 6.13.7, NixOS, 24.11 (Vicuna), 24.11.715880.b75693fb46bf
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.24.12
- channels(kg):
"unstable"
- channels(root):
"nixos-24.11"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE
.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.