2015-04-02 17:03:01 +01:00
|
|
|
{ stdenv, fetchurl, python }:
|
2010-10-18 06:33:31 +01:00
|
|
|
|
2015-04-02 17:03:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "philter-${version}";
|
|
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/philter/${name}.tar.gz";
|
|
|
|
sha256 = "177pqfflhdn2mw9lc1wv9ik32ji69rjqr6dw83hfndwlsva5151l";
|
2010-10-18 06:33:31 +01:00
|
|
|
};
|
|
|
|
|
2015-04-02 17:03:01 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/philter}
|
|
|
|
cp .philterrc "$out"/share/philter/philterrc
|
|
|
|
sed -i 's@/usr/local/bin@${python}/bin@' src/philter.py
|
|
|
|
cp src/philter.py "$out"/bin/philter
|
|
|
|
chmod +x "$out"/bin/philter
|
|
|
|
'';
|
2010-10-18 06:33:31 +01:00
|
|
|
|
2015-04-02 17:03:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-10-18 06:33:31 +01:00
|
|
|
description = "Mail sorter for Maildirs";
|
2015-04-02 17:03:01 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = with platforms; linux;
|
2010-10-18 06:33:31 +01:00
|
|
|
};
|
2015-04-02 17:03:01 +01:00
|
|
|
|
2010-10-18 06:33:31 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://philter.sourceforge.net/";
|
|
|
|
};
|
|
|
|
};
|
2015-04-02 17:03:01 +01:00
|
|
|
}
|