Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
nodejs,
|
|
npmHooks,
|
|
fetchNpmDeps,
|
|
dotnetCorePackages,
|
|
}:
|
|
|
|
buildDotnetModule (finalAttrs: {
|
|
pname = "smtp4dev";
|
|
version = "3.10.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rnwood";
|
|
repo = "smtp4dev";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-bbo4kke0deZQoD08dbUKsLUhjg/z7TaIr5qmU4SETNg=";
|
|
};
|
|
|
|
patches = [ ./smtp4dev-npm-packages.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
nodejs.python
|
|
npmHooks.npmConfigHook
|
|
stdenv.cc # c compiler is needed for compiling npm-deps
|
|
];
|
|
|
|
npmRoot = "Rnwood.Smtp4dev/ClientApp";
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit (finalAttrs) src patches;
|
|
hash = "sha256-c0/6kbMv5CmLxS0S/p3+oZvZsuHP9gt4X43uvGQFjTw=";
|
|
postPatch = "cd ${finalAttrs.npmRoot}";
|
|
};
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
projectFile = "Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj";
|
|
nugetDeps = ./deps.json;
|
|
executables = [ "Rnwood.Smtp4dev" ];
|
|
|
|
postFixup = ''
|
|
mv $out/bin/Rnwood.Smtp4dev $out/bin/smtp4dev
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/smtp4dev --help > /dev/null
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Fake smtp email server for development and testing";
|
|
homepage = "https://github.com/rnwood/smtp4dev";
|
|
license = lib.licenses.bsd3;
|
|
mainProgram = "smtp4dev";
|
|
maintainers = with lib.maintainers; [
|
|
rucadi
|
|
jchw
|
|
defelo
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|