From 612514652abe6fc1f30036f0d517e0a4ccf6a481 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Fri, 27 Jun 2025 12:57:23 +0100 Subject: [PATCH] agate: 3.3.16 -> 3.3.17 Changelog: https://github.com/mbrubeck/agate/releases/tag/v3.3.17 --- pkgs/by-name/ag/agate/package.nix | 38 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/ag/agate/package.nix b/pkgs/by-name/ag/agate/package.nix index ae8930b0b8bd..798bbdd73838 100644 --- a/pkgs/by-name/ag/agate/package.nix +++ b/pkgs/by-name/ag/agate/package.nix @@ -1,41 +1,38 @@ { lib, - stdenv, - nixosTests, fetchFromGitHub, rustPlatform, - openssl, + pkg-config, + openssl, + + versionCheckHook, + nix-update-script, + nixosTests, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "agate"; - version = "3.3.16"; + version = "3.3.17"; + + __darwinAllowLocalNetworking = true; src = fetchFromGitHub { owner = "mbrubeck"; repo = "agate"; - tag = "v${version}"; - hash = "sha256-TLLmoQXrvgDskmH9sKxUi5AqYrCR0ZaJJdbOV03IbMc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-zT56JGP2SfOqLL/sLxo3PHnbAvLI+lifmCvLdPwzCZM="; }; - useFetchCargoVendor = true; - cargoHash = "sha256-HA1h06ZlWvq7z5hJFqKxGtXNk8/GHxUivigaVqWQCvA="; + cargoHash = "sha256-vemmO7xYf83rBNEvJKaq5CjobG1LUxt7M5zeQegTUmM="; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; - doInstallCheck = true; - installCheckPhase = '' - runHook preInstallCheck - $out/bin/agate --help - $out/bin/agate --version 2>&1 | grep "agate ${version}" - runHook postInstallCheck - ''; + nativeInstallCheckInputs = [ versionCheckHook ]; - __darwinAllowLocalNetworking = true; + doInstallCheck = true; passthru = { tests = { @@ -46,7 +43,7 @@ rustPlatform.buildRustPackage rec { meta = { homepage = "https://github.com/mbrubeck/agate"; - changelog = "https://github.com/mbrubeck/agate/releases/tag/v${version}"; + changelog = "https://github.com/mbrubeck/agate/releases/tag/v${finalAttrs.version}"; description = "Very simple server for the Gemini hypertext protocol"; mainProgram = "agate"; longDescription = '' @@ -57,8 +54,9 @@ rustPlatform.buildRustPackage rec { ''; license = with lib.licenses; [ asl20 + # or mit ]; maintainers = with lib.maintainers; [ jk ]; }; -} +})