Unverified Commit b8d1cd6e authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #250132 from NixOS/honk-bump

honk: 0.9.91 -> 1.0.0
parents 4b4c04c7 51653037
Loading
Loading
Loading
Loading
+25 −9
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchurl, installShellFiles, sqlite }:
{ lib
, buildGoModule
, fetchurl
, sqlite
, installShellFiles
}:

buildGoModule rec {
  pname = "honk";
  version = "0.9.91";
  version = "1.0.0";

  src = fetchurl {
    url = "https://humungus.tedunangst.com/r/honk/d/honk-${version}.tgz";
    hash = "sha256-+NFWTTMVdngWsC8/EIN2xJC/5C4naaAekk/YoA17wFk=";
    hash = "sha256-+0W9HncN+51dRE9bWJU4cAfYOc5bxNAqPe4xY+4UFg0=";
  };
  vendorHash = null;

  buildInputs = [ sqlite ];
  nativeBuildInputs = [ installShellFiles ];
  buildInputs = [
    sqlite
  ];

  nativeBuildInputs = [
    installShellFiles
  ];

  subPackages = [ "." ];

  # This susbtitution is not mandatory. It is only existing to have something
  # working out of the box. This value can be overriden by the user, by
  # providing the `-viewdir` parameter in the command line.
  postPatch = ''
    substituteInPlace honk.go --replace \
    substituteInPlace main.go --replace \
      "var viewDir = \".\"" \
      "var viewDir = \"$out/share/honk\""
  '';
@@ -35,10 +49,12 @@ buildGoModule rec {
    mv views $out/share/${pname}
  '';

  meta = with lib; {
  meta = {
    changelog = "https://humungus.tedunangst.com/r/honk/v/v${version}/f/docs/changelog.txt";
    description = "An ActivityPub server with minimal setup and support costs.";
    homepage = "https://humungus.tedunangst.com/r/honk";
    license = licenses.isc;
    maintainers = with maintainers; [ huyngo ];
    license = lib.licenses.isc;
    mainProgram = "honk";
    maintainers = with lib.maintainers; [ huyngo ];
  };
}