Merge pull request #250132 from NixOS/honk-bump

honk: 0.9.91 -> 1.0.0
This commit is contained in:
Pol Dellaiera 2023-08-19 13:57:18 +02:00 committed by GitHub
commit b8d1cd6e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,35 @@
{ 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 ];
};
}