3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromSourcehut
2021-02-18 21:24:57 +00:00
, ncurses, notmuch, scdoc
, python3, w3m, dante
}:
2020-06-07 12:06:05 +01:00
buildGoModule rec {
pname = "aerc";
2021-12-04 14:22:01 +00:00
version = "0.6.0";
src = fetchFromSourcehut {
2021-12-04 14:22:01 +00:00
owner = "~rjarry";
repo = pname;
rev = version;
2021-12-04 14:22:01 +00:00
sha256 = "sha256-RaHigTp1YGkjQ46gFLhKcJuajekcCgfozu0ndCNq5Ac=";
};
2022-01-01 05:05:03 +00:00
proxyVendor = true;
vendorSha256 = "sha256-ZFs2CXmNZpGae7bD15yTh3w6b00C7AgOwGuz72d2wHs=";
doCheck = false;
nativeBuildInputs = [
scdoc
python3.pkgs.wrapPython
];
patches = [
./runtime-sharedir.patch
];
pythonPath = [
python3.pkgs.colorama
];
buildInputs = [ python3 notmuch ];
buildPhase = "
runHook preBuild
# we use make instead of go build
runHook postBuild
";
installPhase = ''
runHook preInstall
2020-07-20 05:50:54 +01:00
make PREFIX=$out GOFLAGS="$GOFLAGS -tags=notmuch" install
wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath"
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/aerc --prefix PATH ":" \
2021-01-15 05:42:41 +00:00
"$out/share/aerc/filters:${lib.makeBinPath [ ncurses ]}"
wrapProgram $out/share/aerc/filters/html --prefix PATH ":" \
2021-01-15 05:42:41 +00:00
${lib.makeBinPath [ w3m dante ]}
'';
meta = with lib; {
description = "An email client for your terminal";
homepage = "https://aerc-mail.org/";
maintainers = with maintainers; [ tadeokondrak ];
license = licenses.mit;
platforms = platforms.unix;
};
2020-07-20 05:50:54 +01:00
}