mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
lumail: init at 2.9
This commit is contained in:
parent
cc4fd4f715
commit
47ded42788
48
pkgs/applications/networking/mailreaders/lumail/default.nix
Normal file
48
pkgs/applications/networking/mailreaders/lumail/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ stdenv, fetchurl, pkgconfig, lua5_2, file, ncurses, gmime, pcre-cpp
|
||||
, perl, perlPackages }:
|
||||
|
||||
let
|
||||
version = "2.9";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "lumail-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://lumail.org/download/lumail-${version}.tar.gz";
|
||||
sha256 = "1rni5lbic36v4cd1r0l28542x0hlmfqkl6nac79gln491in2l2sc";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig lua5_2 file ncurses gmime pcre-cpp
|
||||
perl perlPackages.JSON perlPackages.NetIMAPClient
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
sed -e 's|"/etc/lumail2|LUMAIL_LUAPATH"/..|' -i src/lumail2.cc src/imap_proxy.cc
|
||||
|
||||
perlFlags=
|
||||
for i in $(IFS=:; echo $PERL5LIB); do
|
||||
perlFlags="$perlFlags -I$i"
|
||||
done
|
||||
|
||||
sed -e "s|^#\!\(.*/perl.*\)$|#\!\1$perlFlags|" -i perl.d/imap-proxy
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"LVER=lua"
|
||||
"PREFIX=$(out)"
|
||||
"SYSCONFDIR=$(out)/etc"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
cp lumail2.user.lua $out/etc/lumail2/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Console-based email client";
|
||||
homepage = https://lumail.org/;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [orivej];
|
||||
};
|
||||
}
|
@ -14089,6 +14089,8 @@ with pkgs;
|
||||
gtk = gtk2;
|
||||
};
|
||||
|
||||
lumail = callPackage ../applications/networking/mailreaders/lumail { };
|
||||
|
||||
lv2bm = callPackage ../applications/audio/lv2bm { };
|
||||
|
||||
lynx = callPackage ../applications/networking/browsers/lynx { };
|
||||
|
Loading…
Reference in New Issue
Block a user