nixos-config/pkgs/hashcash-milter/default.nix

24 lines
598 B
Nix
Raw Permalink Normal View History

2024-01-05 12:03:53 +01:00
{ stdenv, fetchFromGitHub, lib, libmilter, db }:
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
'';
meta = with lib; {
description = "Hashcash Milter";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ therealr5 ];
};
}