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