{ stdenv, fetchFromGitHub, }: stdenv.mkDerivation (finalAttrs: { pname = "spam-filter"; version = "2.0.3"; src = fetchFromGitHub { owner = "stalwartlabs"; repo = "spam-filter"; tag = "v${finalAttrs.version}"; hash = "sha256-NhD/qUiGhgESwR2IOzAHfDATRlgWMcCktlktvVfDONk="; }; buildPhase = '' bash ./build.sh ''; installPhase = '' mkdir --parents "$out" cp ./spam-filter.toml "$out/" ''; })