discourse-mail-receiver: replace replace with sd

The license for replace is fuzzy and it was therefore marked unfree.
This commit is contained in:
Martin Weinelt
2026-05-19 03:13:44 +02:00
parent bf49b33367
commit 732ff646a5
@@ -4,7 +4,7 @@
fetchFromGitHub,
ruby,
makeWrapper,
replace,
sd,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -19,8 +19,8 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [
replace
makeWrapper
sd
];
buildInputs = [ ruby ];
@@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
mkdir -p $out/bin
replace-literal -f -r -e /etc/postfix /run/discourse-mail-receiver .
find . -type f -exec sd '/etc/postfix' '/run/discourse-mail-receiver' {} +
cp -r receive-mail discourse-smtp-fast-rejection $out/bin/
cp -r lib $out/