33 lines
860 B
Nix
33 lines
860 B
Nix
{ lib, buildGoModule, fetchgit }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ai-mailer";
|
|
version = "0.1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.cloonar.com/Paraclub/ai-mailer.git";
|
|
rev = "8903aa072a482e1e52170c840bf87d8da5d9d9e0";
|
|
sha256 = "sha256-+YPB3tcy2+ZiiwYfg6QzPcrg1gf9ivlLaZRzviwWe90=";
|
|
};
|
|
|
|
vendorHash = "sha256-h4RaB891GXAkgObZHYil6BOvbYp6yJSRxRj40Fhchmw=";
|
|
|
|
subPackages = [ "cmd/paraclub-ai-mailer" ];
|
|
|
|
preBuild = ''
|
|
sed -i 's/go 1.23.5/go 1.22/' go.mod
|
|
'';
|
|
|
|
postInstall = ''
|
|
mv $out/bin/paraclub-ai-mailer $out/bin/ai-mailer
|
|
ln -s $out/bin/ai-mailer $out/bin/paraclub-ai-mailer
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "AI Mail Assistant Service";
|
|
homepage = "https://git.cloonar.com/Paraclub/ai-mailer";
|
|
license = licenses.unfree; # Adjust based on your project's license
|
|
maintainers = [ ];
|
|
};
|
|
}
|