alot: refactor (#433918)

This commit is contained in:
Fabian Affolter
2025-08-16 01:48:59 +02:00
committed by GitHub
+8 -9
View File
@@ -23,13 +23,11 @@ buildPythonApplication rec {
"man"
];
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "pazz";
repo = "alot";
tag = version;
sha256 = "sha256-mXaRzl7260uxio/BQ36BCBxgKhl1r0Rc6PwFZA8qNqc=";
hash = "sha256-mXaRzl7260uxio/BQ36BCBxgKhl1r0Rc6PwFZA8qNqc=";
};
postPatch = ''
@@ -37,12 +35,12 @@ buildPythonApplication rec {
--replace-fail /usr/share "$out/share"
'';
nativeBuildInputs = [
build-system = [
setuptools-scm
]
++ lib.optional withManpage sphinx;
propagatedBuildInputs = [
dependencies = [
configobj
file
gpgme
@@ -95,12 +93,13 @@ buildPythonApplication rec {
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
'';
meta = with lib; {
meta = {
homepage = "https://github.com/pazz/alot";
description = "Terminal MUA using notmuch mail";
changelog = "https://github.com/pazz/alot/releases/tag/${src.tag}";
mainProgram = "alot";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ milibopp ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ milibopp ];
};
}