30 lines
879 B
Nix
30 lines
879 B
Nix
{ stdenv, fetchurl, python2Packages }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
pname = "getmail";
|
|
version = "5.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://pyropus.ca/software/getmail/old-versions/${pname}-${version}.tar.gz";
|
|
sha256 = "1ygv78ihjyrh60657bl8pc17a5dqawdkfh32h8hrd4kwwxlsd5r4";
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
postPatch = ''
|
|
# getmail spends a lot of effort to build an absolute path for
|
|
# documentation installation; too bad it is counterproductive now
|
|
sed -e '/datadir or prefix,/d' -i setup.py
|
|
'';
|
|
|
|
meta = {
|
|
description = "A program for retrieving mail";
|
|
maintainers = [ stdenv.lib.maintainers.raskin stdenv.lib.maintainers.domenkozar ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = http://pyropus.ca/software/getmail/;
|
|
inherit version;
|
|
updateWalker = true;
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|