
Cargo 1.84.0 seems to have changed the output format of cargo vendor again, once again invalidating fetchCargoTarball FOD hashes. It's time to fix this once and for all, switching across the board to fetchCargoVendor, which is not dependent on cargo vendor's output format. It should be possible to reproduce this diff. To do so, get the list of files changed by this commit, e.g. with git diff --name-only, then run the following two commands, each with that list of files as their standard input: xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/' cut -d / -f 4 | xargs -n 1 nix-update --version=skip This will take a long time. It might be possible to parallelize it using xargs' -P option. I haven't tested it.
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
installShellFiles,
|
|
libxml2,
|
|
openssl,
|
|
stdenv,
|
|
curl,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hurl";
|
|
version = "6.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Orange-OpenSource";
|
|
repo = "hurl";
|
|
tag = version;
|
|
hash = "sha256-zrZWYnXUuzf2cS3n56/hWDvyXVM4Y/34SOlMPrtAhJo=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-sq0m6wkryfmthkPHMY0ZOXNhdNKnnsPLa/6tTsuWCS0=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
libxml2
|
|
openssl
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
curl
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
# The actual tests require network access to a test server, but we can run an install check
|
|
doCheck = false;
|
|
doInstallCheck = true;
|
|
|
|
postInstall = ''
|
|
installManPage docs/manual/hurl.1 docs/manual/hurlfmt.1
|
|
installShellCompletion --cmd hurl \
|
|
--bash completions/hurl.bash \
|
|
--zsh completions/_hurl \
|
|
--fish completions/hurl.fish
|
|
|
|
installShellCompletion --cmd hurlfmt \
|
|
--zsh completions/_hurlfmt
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command line tool that performs HTTP requests defined in a simple plain text format";
|
|
homepage = "https://hurl.dev/";
|
|
changelog = "https://github.com/Orange-OpenSource/hurl/blob/${version}/CHANGELOG.md";
|
|
maintainers = with maintainers; [
|
|
eonpatapon
|
|
figsoda
|
|
];
|
|
license = licenses.asl20;
|
|
mainProgram = "hurl";
|
|
};
|
|
}
|