From 388e5fcb501fb241ad4957fb06157fd477e9de8b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Apr 2026 17:51:10 +0200 Subject: [PATCH] urx: init at 0.9.0 Extracts URLs from OSINT Archives for Security Insights https://github.com/hahwul/urx --- pkgs/by-name/ur/urx/package.nix | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/ur/urx/package.nix diff --git a/pkgs/by-name/ur/urx/package.nix b/pkgs/by-name/ur/urx/package.nix new file mode 100644 index 000000000000..30bb239ca171 --- /dev/null +++ b/pkgs/by-name/ur/urx/package.nix @@ -0,0 +1,49 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + sqlite, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "urx"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "hahwul"; + repo = "urx"; + tag = finalAttrs.version; + hash = "sha256-NSPEAA+tD1CdCjRj3myQB8bPdMhT7H76qAIIWx2z++I="; + }; + + cargoHash = "sha256-nPm4ofmu03Rb12spjb+m36C6EauJIppgqTkX1oJF3uk="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ sqlite ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + __structuredAttrs = true; + + checkFlags = [ + # Tests require network access + "--skip=providers" + "--skip=network::client::tests" + ]; + + doInstallCheck = true; + + versionCheckProgramArg = [ "--version" ]; + + meta = { + description = "Extracts URLs from OSINT Archives for Security Insights"; + homepage = "https://github.com/hahwul/urx"; + changelog = "https://github.com/hahwul/urx/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "urx"; + }; +})