2022-01-19 23:45:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "alps";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2022-06-03";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~migadu";
|
|
|
|
repo = "alps";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "9cb23b09975e95f6a5952e3718eaf471c3e3510f";
|
|
|
|
hash = "sha256-BUV1/BRIXHEf2FU1rdmNgueo8KSUlMKbIpAg2lFs3hA=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
vendorSha256 = "sha256-cpY+lYM/nAX3nUaFknrRAavxDk8UDzJkoqFjJ1/KWeg=";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.themesPath=${placeholder "out"}/share/alps/themes"
|
|
|
|
"-X git.sr.ht/~migadu/alps.PluginDir=${placeholder "out"}/share/alps/plugins"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace plugin.go --replace "const PluginDir" "var PluginDir"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/alps"
|
|
|
|
cp -r themes plugins "$out/share/alps/"
|
|
|
|
'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and extensible webmail.";
|
|
|
|
homepage = "https://git.sr.ht/~migadu/alps";
|
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ gordias booklearner ];
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
}
|