1
0
Fork 0

feat: add opengist

Signed-off-by: jolheiser <john.olheiser@gmail.com>
jolheiser 2023-09-14 19:51:11 -05:00
parent cf69cfa831
commit 34bd692941
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 28 additions and 0 deletions

View File

@ -19,6 +19,7 @@
tmpl = pkgs.callPackage ./pkgs/tmpl {};
# Other projects
opengist = pkgs.callPackage ./pkgs/opengist {};
prospect-mail = pkgs.callPackage ./pkgs/prospect-mail {};
tclip = pkgs.callPackage ./pkgs/tclip {};
}

View File

@ -0,0 +1,27 @@
{
buildGoModule,
fetchFromGitHub,
lib,
...
}:
buildGoModule rec {
pname = "opengist";
version = "1.4.2";
src = fetchFromGitHub {
owner = "thomiceli";
repo = "opengist";
rev = "v${version}";
sha256 = "sha256-pDqjoeoVcsbLkAW9EGvIekeMoBqe6YR8LRgTiKS1wLA=";
};
vendorSha256 = "sha256-6qLiflF7ncQ6yXAAcxm9P4ZNFMOwPleKmmu1q6CpiXY=";
ldflags = ["-s" "-w" "-X=github.com/thomicelia/opengist/internal/config.OpengistVersion.Version=${version}"];
meta = with lib; {
description = "Self-hosted pastebin powered by Git, open-source alternative to Github Gist. ";
homepage = "https://github.com/thomiceli/opengist";
license = licenses.agpl3;
};
}