Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aerc: init at 0.1.0 #62648

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
51 changes: 51 additions & 0 deletions pkgs/applications/networking/mailreaders/aerc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ stdenv, buildGoModule, fetchurl
, go, scdoc
, python3, perl, w3m, dante, }:
buildGoModule rec {
pname = "aerc";
version = "0.1.0";
src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/aerc/archive/${version}.tar.gz";
sha256 = "0wx9l097s51ih4khk231f9fs3vw55an8l2jx3q13v7y20522wgnk";
};
nativeBuildInputs = [
go
scdoc
python3.pkgs.wrapPython
];
pythonPath = [
python3.pkgs.colorama
];

buildInputs = [ python3 perl ];

buildPhase = "
runHook preBuild
# we use make instead of go build
runHook postBuild
";

installPhase = ''
runHook preInstall
make PREFIX=$out install
wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath"
runHook postInstall
'';

postFixup = ''
wrapProgram $out/bin/aerc --prefix PATH ":" "$out/share/aerc/filters"
wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \
${stdenv.lib.makeBinPath [ w3m dante ]}
'';

modSha256 = "1h0vr01s2y0k3jjigz0h8ngjv1mhk6kw8mdisp5pr017jbhijfsi";

meta = with stdenv.lib; {
description = "aerc is an email client for your terminal";
maintainers = with maintainers; [
# TODO: find a maintainer
];
license = licenses.mit;
platforms = platforms.unix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

homepage?

};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ in
wxGTK = wxGTK30;
} // (config.aegisub or {}));

aerc = callPackage ../applications/networking/mailreaders/aerc { };

aerospike = callPackage ../servers/nosql/aerospike { };

aespipe = callPackage ../tools/security/aespipe { };
Expand Down