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