2022-11-21 17:40:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut, fetchpatch, nixosTests }:
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "alps";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2022-10-18";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~migadu";
|
|
|
|
repo = "alps";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "f01fbcbc48db5e65d69a0ebd9d7cb0deb378cf13";
|
|
|
|
hash = "sha256-RSug3YSiqYLGs05Bee4NoaoCyPvUZ7IqlKWI1hmxbiA=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-QsGfINktk+rBj4b5h+NBVS6XV1SVz+9fDL1vtUqcKEU=";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
ldflags = [
|
2022-09-22 12:36:57 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-08-12 12:06:08 +00:00
|
|
|
"-X main.themesPath=${placeholder "out"}/share/alps/themes"
|
|
|
|
"-X git.sr.ht/~migadu/alps.PluginDir=${placeholder "out"}/share/alps/plugins"
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "Issue-160-Alps-theme-has-a-enormous-move-to-list-sel";
|
|
|
|
url = "https://lists.sr.ht/~migadu/alps-devel/patches/30096/mbox";
|
|
|
|
hash = "sha256-Sz/SCkrrXZWrmJzjfPXi+UfCcbwsy6QiA7m34iiEFX0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
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;
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.tests = { inherit(nixosTests) alps; };
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple and extensible webmail";
|
2022-01-19 23:45:15 +00:00
|
|
|
homepage = "https://git.sr.ht/~migadu/alps";
|
|
|
|
license = licenses.mit;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ booklearner madonius hmenke ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "alps";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
}
|