2015-04-02 16:03:01 +00:00
|
|
|
{ stdenv, fetchurl, python }:
|
2010-10-18 05:33:31 +00:00
|
|
|
|
2015-04-02 16:03:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "philter";
|
2015-04-02 16:03:01 +00:00
|
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/philter/${pname}-${version}.tar.gz";
|
2015-04-02 16:03:01 +00:00
|
|
|
sha256 = "177pqfflhdn2mw9lc1wv9ik32ji69rjqr6dw83hfndwlsva5151l";
|
2010-10-18 05:33:31 +00:00
|
|
|
};
|
|
|
|
|
2015-04-02 16:03:01 +00: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 05:33:31 +00:00
|
|
|
|
2015-04-02 16:03:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-10-18 05:33:31 +00:00
|
|
|
description = "Mail sorter for Maildirs";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://philter.sourceforge.net";
|
2015-04-02 16:03:01 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-10 19:40:21 +00:00
|
|
|
license = licenses.gpl2;
|
2010-10-18 05:33:31 +00:00
|
|
|
};
|
2015-04-02 16:03:01 +00:00
|
|
|
|
2010-10-18 05:33:31 +00:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://philter.sourceforge.net/";
|
|
|
|
};
|
|
|
|
};
|
2015-04-02 16:03:01 +00:00
|
|
|
}
|