hurl: modernize, adopt (#458514)

This commit is contained in:
Fernando Rodrigues
2025-11-04 18:10:34 +00:00
committed by GitHub

View File

@@ -8,16 +8,17 @@
openssl, openssl,
curl, curl,
versionCheckHook, versionCheckHook,
nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (finalAttrs: {
pname = "hurl"; pname = "hurl";
version = "7.0.0"; version = "7.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Orange-OpenSource"; owner = "Orange-OpenSource";
repo = "hurl"; repo = "hurl";
tag = version; tag = finalAttrs.version;
hash = "sha256-dmPXI2RHEi/wcdVVwBRtBgNXyBXFnm44236pqYjxgBs="; hash = "sha256-dmPXI2RHEi/wcdVVwBRtBgNXyBXFnm44236pqYjxgBs=";
}; };
@@ -52,14 +53,17 @@ rustPlatform.buildRustPackage rec {
--zsh completions/_hurlfmt --zsh completions/_hurlfmt
''; '';
passthru.updateScript = nix-update-script { };
meta = { meta = {
description = "Command line tool that performs HTTP requests defined in a simple plain text format"; description = "Command line tool that performs HTTP requests defined in a simple plain text format";
homepage = "https://hurl.dev/"; homepage = "https://hurl.dev/";
changelog = "https://github.com/Orange-OpenSource/hurl/blob/${version}/CHANGELOG.md"; changelog = "https://github.com/Orange-OpenSource/hurl/blob/${finalAttrs.version}/CHANGELOG.md";
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
eonpatapon eonpatapon
defelo
]; ];
license = lib.licenses.asl20; license = lib.licenses.asl20;
mainProgram = "hurl"; mainProgram = "hurl";
}; };
} })