1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix
Matthias Beyer 0bf6e25a6b aerc: 0.1.0 -> 0.1.1
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-10 16:25:08 +02:00

56 lines
1.2 KiB
Nix

{ stdenv, buildGoModule, fetchurl
, go, scdoc
, python3, perl, w3m, dante
}:
buildGoModule rec {
pname = "aerc";
version = "0.1.1";
src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/aerc/archive/${version}.tar.gz";
sha256 = "0rpwjjnaq8mj619ajzyl3kad7sysbz87qz2ds0jyy7kvyzv6r7zb";
};
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 = "0p8lp6xwg6jacrnxzw3q73mqxy9wzj5vs0k1saa48ardqd2f7b00";
meta = with stdenv.lib; {
description = "aerc is an email client for your terminal";
homepage = https://aerc-mail.org/;
maintainers = with maintainers; [ tadeokondrak ];
license = licenses.mit;
platforms = platforms.unix;
};
}