mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
commit
b8d1cd6e50
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user