From 3b573ba6536e71e2acf22bee96aa8eea47968336 Mon Sep 17 00:00:00 2001 From: nartsisss Date: Tue, 16 Jun 2026 22:34:44 +0300 Subject: [PATCH] sampo: 0.17.4 -> 0.18.0 --- pkgs/by-name/sa/sampo/package.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/sa/sampo/package.nix b/pkgs/by-name/sa/sampo/package.nix index 37e2834096c2..d88d26101e3e 100644 --- a/pkgs/by-name/sa/sampo/package.nix +++ b/pkgs/by-name/sa/sampo/package.nix @@ -9,21 +9,22 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "sampo"; - version = "0.17.4"; + version = "0.18.0"; + __structuredAttrs = true; src = fetchFromGitHub { owner = "bruits"; repo = "sampo"; - tag = "sampo-v${finalAttrs.version}"; - hash = "sha256-P+CekuDM3u+iG2HmCNWxZoTCaKtAUMnrNre4zeGNPrQ="; + tag = "cargo-sampo-v${finalAttrs.version}"; + hash = "sha256-LPgY/UA2AF871bid8wqxzIhTDnsHsQ7IhY/eNYE6Npk="; }; + cargoHash = "sha256-U52xGXJlz7cM1fJWZMp51iNgYQRA8AKJ0OkbxlAB5C8="; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; - cargoHash = "sha256-udMpH0LWNqPTORSb1/c686stgvti5shx/O9rcH7YZNs="; - cargoBuildFlags = [ "-p" "sampo" @@ -35,12 +36,14 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; - passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=sampo-v([0-9\\.]*)" ]; }; + passthru.updateScript = nix-update-script { + extraArgs = [ "--version-regex=cargo-sampo-v([0-9\\.]*)" ]; + }; meta = { description = "Automate changelogs, versioning, and publishing—even for monorepos across multiple package registries"; homepage = "https://github.com/bruits/sampo"; - changelog = "https://github.com/bruits/sampo/blob/sampo-v${finalAttrs.version}/crates/sampo/CHANGELOG.md"; + changelog = "https://github.com/bruits/sampo/blob/${finalAttrs.src.tag}/crates/sampo/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ nartsiss ]; mainProgram = "sampo";