agate: 3.3.16 -> 3.3.17 (#420517)

authored by Nikolay Korotkiy and committed by GitHub ad0b62fd d4d3af4b

+18 -20
+18 -20
pkgs/by-name/ag/agate/package.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 4 - nixosTests, 5 3 fetchFromGitHub, 6 4 rustPlatform, 7 - openssl, 5 + 8 6 pkg-config, 7 + openssl, 8 + 9 + versionCheckHook, 10 + 9 11 nix-update-script, 12 + nixosTests, 10 13 }: 11 14 12 - rustPlatform.buildRustPackage rec { 15 + rustPlatform.buildRustPackage (finalAttrs: { 13 16 pname = "agate"; 14 - version = "3.3.16"; 17 + version = "3.3.17"; 18 + 19 + __darwinAllowLocalNetworking = true; 15 20 16 21 src = fetchFromGitHub { 17 22 owner = "mbrubeck"; 18 23 repo = "agate"; 19 - tag = "v${version}"; 20 - hash = "sha256-TLLmoQXrvgDskmH9sKxUi5AqYrCR0ZaJJdbOV03IbMc="; 24 + tag = "v${finalAttrs.version}"; 25 + hash = "sha256-zT56JGP2SfOqLL/sLxo3PHnbAvLI+lifmCvLdPwzCZM="; 21 26 }; 22 27 23 - useFetchCargoVendor = true; 24 - cargoHash = "sha256-HA1h06ZlWvq7z5hJFqKxGtXNk8/GHxUivigaVqWQCvA="; 28 + cargoHash = "sha256-vemmO7xYf83rBNEvJKaq5CjobG1LUxt7M5zeQegTUmM="; 25 29 26 30 nativeBuildInputs = [ pkg-config ]; 27 - 28 31 buildInputs = [ openssl ]; 29 32 33 + nativeInstallCheckInputs = [ versionCheckHook ]; 34 + 30 35 doInstallCheck = true; 31 - installCheckPhase = '' 32 - runHook preInstallCheck 33 - $out/bin/agate --help 34 - $out/bin/agate --version 2>&1 | grep "agate ${version}" 35 - runHook postInstallCheck 36 - ''; 37 - 38 - __darwinAllowLocalNetworking = true; 39 36 40 37 passthru = { 41 38 tests = { ··· 46 43 47 44 meta = { 48 45 homepage = "https://github.com/mbrubeck/agate"; 49 - changelog = "https://github.com/mbrubeck/agate/releases/tag/v${version}"; 46 + changelog = "https://github.com/mbrubeck/agate/releases/tag/v${finalAttrs.version}"; 50 47 description = "Very simple server for the Gemini hypertext protocol"; 51 48 mainProgram = "agate"; 52 49 longDescription = '' ··· 57 54 ''; 58 55 license = with lib.licenses; [ 59 56 asl20 57 + # or 60 58 mit 61 59 ]; 62 60 maintainers = with lib.maintainers; [ jk ]; 63 61 }; 64 - } 62 + })