nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, python2Packages }:
2
3python2Packages.buildPythonApplication rec {
4 pname = "getmail";
5 version = "5.14";
6
7 src = fetchurl {
8 url = "http://pyropus.ca/software/getmail/old-versions/${pname}-${version}.tar.gz";
9 sha256 = "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk";
10 };
11
12 doCheck = false;
13
14 postPatch = ''
15 # getmail spends a lot of effort to build an absolute path for
16 # documentation installation; too bad it is counterproductive now
17 sed -e '/datadir or prefix,/d' -i setup.py
18 '';
19
20 meta = {
21 description = "A program for retrieving mail";
22 maintainers = [ stdenv.lib.maintainers.raskin stdenv.lib.maintainers.domenkozar ];
23 platforms = stdenv.lib.platforms.linux;
24
25 homepage = http://pyropus.ca/software/getmail/;
26 inherit version;
27 updateWalker = true;
28 license = stdenv.lib.licenses.gpl2Plus;
29 };
30}