nixpkgs/pkgs/servers/alps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-17 09:49:24 +00:00
{ lib, buildGoModule, fetchFromSourcehut, fetchpatch, nixosTests }:
buildGoModule rec {
pname = "alps";
2022-11-17 09:49:24 +00:00
version = "2022-10-18";
src = fetchFromSourcehut {
owner = "~migadu";
repo = "alps";
2022-11-17 09:49:24 +00:00
rev = "f01fbcbc48db5e65d69a0ebd9d7cb0deb378cf13";
hash = "sha256-RSug3YSiqYLGs05Bee4NoaoCyPvUZ7IqlKWI1hmxbiA=";
};
2024-04-05 21:04:16 +00:00
vendorHash = "sha256-QsGfINktk+rBj4b5h+NBVS6XV1SVz+9fDL1vtUqcKEU=";
ldflags = [
"-s"
"-w"
"-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=";
})
];
postPatch = ''
substituteInPlace plugin.go --replace "const PluginDir" "var PluginDir"
'';
postInstall = ''
mkdir -p "$out/share/alps"
cp -r themes plugins "$out/share/alps/"
'';
proxyVendor = true;
2022-11-17 09:34:59 +00:00
passthru.tests = { inherit(nixosTests) alps; };
meta = with lib; {
description = "Simple and extensible webmail";
homepage = "https://git.sr.ht/~migadu/alps";
license = licenses.mit;
maintainers = with maintainers; [ booklearner madonius hmenke ];
2023-11-27 01:17:53 +00:00
mainProgram = "alps";
};
}