2024-01-05 12:03:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, lib, libmilter, db }:
|
2023-09-24 21:32:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hashcash-milter";
|
|
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zholos";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-yVpfvwpZUZQppZpmXmAqjoZH5shWUnA8aMVSOkPyQXw=";
|
|
|
|
};
|
2024-01-05 12:03:53 +01:00
|
|
|
buildInputs = [ libmilter db ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m 755 -p -s hashcash-milter $out/bin
|
|
|
|
'';
|
2023-09-24 21:32:28 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hashcash Milter";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ therealr5 ];
|
|
|
|
};
|
|
|
|
}
|