2022-11-17 09:49:24 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut, fetchpatch, nixosTests }:
|
2022-01-17 20:50:30 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "alps";
|
2022-11-17 09:49:24 +00:00
|
|
|
version = "2022-10-18";
|
2022-01-17 20:50:30 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~migadu";
|
|
|
|
repo = "alps";
|
2022-11-17 09:49:24 +00:00
|
|
|
rev = "f01fbcbc48db5e65d69a0ebd9d7cb0deb378cf13";
|
|
|
|
hash = "sha256-RSug3YSiqYLGs05Bee4NoaoCyPvUZ7IqlKWI1hmxbiA=";
|
2022-01-17 20:50:30 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-XDm6LU9D/rVQHiko7EFpocv+IktGe6tQhJYRrOJxeSs=";
|
2022-01-17 20:50:30 +00:00
|
|
|
|
2022-07-08 11:43:23 +00:00
|
|
|
ldflags = [
|
2022-09-16 19:45:03 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-07-08 11:43:23 +00:00
|
|
|
"-X main.themesPath=${placeholder "out"}/share/alps/themes"
|
|
|
|
"-X git.sr.ht/~migadu/alps.PluginDir=${placeholder "out"}/share/alps/plugins"
|
|
|
|
];
|
|
|
|
|
2022-11-17 09:49:24 +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-07-08 11:43:23 +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-17 20:50:30 +00:00
|
|
|
proxyVendor = true;
|
|
|
|
|
2022-11-17 09:34:59 +00:00
|
|
|
passthru.tests = { inherit(nixosTests) alps; };
|
|
|
|
|
2022-01-17 20:50:30 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and extensible webmail.";
|
|
|
|
homepage = "https://git.sr.ht/~migadu/alps";
|
|
|
|
license = licenses.mit;
|
2023-06-04 14:26:28 +00:00
|
|
|
maintainers = with maintainers; [ booklearner madonius hmenke ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "alps";
|
2022-01-17 20:50:30 +00:00
|
|
|
};
|
|
|
|
}
|