Unverified Commit ad0b62fd authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

agate: 3.3.16 -> 3.3.17 (#420517)

parents d4d3af4b 61251465
Loading
Loading
Loading
Loading
+18 −20
Original line number Diff line number Diff line
{
  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 ];
  };
}
})