From 1c791e2b49cd108df11b2be4a3f9b09346cf448c Mon Sep 17 00:00:00 2001 From: Defelo Date: Fri, 5 Jun 2026 22:33:12 +0000 Subject: [PATCH] chhoto-url: 7.1.5 -> 7.2.1 Changelog: https://github.com/SinTan1729/chhoto-url/releases/tag/7.2.1 Diff: https://github.com/SinTan1729/chhoto-url/compare/7.1.5...7.2.1 --- nixos/tests/chhoto-url.nix | 2 +- pkgs/by-name/ch/chhoto-url/package.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/tests/chhoto-url.nix b/nixos/tests/chhoto-url.nix index 01572b3c3216..a2f443e9b0da 100644 --- a/nixos/tests/chhoto-url.nix +++ b/nixos/tests/chhoto-url.nix @@ -38,7 +38,7 @@ resp = json.loads(machine.succeed("curl localhost:8000/api/getconfig")) assert resp["success"] is False - assert resp["reason"] == "No valid authentication was found" + assert resp["reason"] == "No valid authentication." resp = json.loads(machine.succeed("curl -H 'X-API-Key: api_key' localhost:8000/api/getconfig")) expected_version = "${config.nodes.machine.services.chhoto-url.package.version}" diff --git a/pkgs/by-name/ch/chhoto-url/package.nix b/pkgs/by-name/ch/chhoto-url/package.nix index 0cbef07a654c..7f3a2ec9ba89 100644 --- a/pkgs/by-name/ch/chhoto-url/package.nix +++ b/pkgs/by-name/ch/chhoto-url/package.nix @@ -8,23 +8,23 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "chhoto-url"; - version = "7.1.5"; + version = "7.2.1"; src = fetchFromGitHub { owner = "SinTan1729"; repo = "chhoto-url"; tag = finalAttrs.version; - hash = "sha256-TREBriuK7k3ZBDkdQ5gGdptWCG/5UOdhoWcOj1Ppd/8="; + hash = "sha256-B6bMuy/EEveYtQtGBO5CNeEUlPK8eQ412k+SwlRPm2M="; }; sourceRoot = "${finalAttrs.src.name}/actix"; postPatch = '' - substituteInPlace src/{main.rs,services.rs} \ + substituteInPlace src/{main.rs,services/get.rs,services/utils.rs} \ --replace-fail "./resources/" "${placeholder "out"}/share/chhoto-url/resources/" ''; - cargoHash = "sha256-S+fWxhPRB+JZPjWQkww9VYtYfc9vnXCZgUZTu+ND1So="; + cargoHash = "sha256-9EVGsOipx9ObygpM37iZYLnhYjSMHFhHTDvjHkLWLz8="; postInstall = '' mkdir -p $out/share/chhoto-url