2022-01-19 23:45:15 +00:00
|
|
|
{ lib, stdenv, fetchurl, python2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "philter";
|
|
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/philter/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "177pqfflhdn2mw9lc1wv9ik32ji69rjqr6dw83hfndwlsva5151l";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/philter}
|
|
|
|
cp .philterrc "$out"/share/philter/philterrc
|
2022-01-19 23:45:15 +00:00
|
|
|
sed -i 's@/usr/local/bin@${python2}/bin@' src/philter.py
|
2020-04-24 23:36:52 +00:00
|
|
|
cp src/philter.py "$out"/bin/philter
|
|
|
|
chmod +x "$out"/bin/philter
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mail sorter for Maildirs";
|
|
|
|
homepage = "http://philter.sourceforge.net";
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2021-03-23 19:22:30 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://philter.sourceforge.net/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|