Unverified Commit 22149159 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

hurl: modernize, adopt (#458514)

parents aaec16e8 7eb11075
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -8,16 +8,17 @@
  openssl,
  curl,
  versionCheckHook,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "hurl";
  version = "7.0.0";

  src = fetchFromGitHub {
    owner = "Orange-OpenSource";
    repo = "hurl";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-dmPXI2RHEi/wcdVVwBRtBgNXyBXFnm44236pqYjxgBs=";
  };

@@ -52,14 +53,17 @@ rustPlatform.buildRustPackage rec {
      --zsh completions/_hurlfmt
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    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";
    changelog = "https://github.com/Orange-OpenSource/hurl/blob/${finalAttrs.version}/CHANGELOG.md";
    maintainers = with lib.maintainers; [
      eonpatapon
      defelo
    ];
    license = lib.licenses.asl20;
    mainProgram = "hurl";
  };
}
})