smtp4dev: init at 3.3.4 (#301010)

This commit is contained in:
Masum Reza 2024-09-26 17:56:01 +05:30 committed by GitHub
commit 31baab142b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2024 additions and 0 deletions

1966
pkgs/by-name/sm/smtp4dev/deps.nix generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,58 @@
{
lib,
stdenv,
buildDotnetModule,
fetchFromGitHub,
nodejs,
npmHooks,
fetchNpmDeps,
dotnetCorePackages,
}:
let
version = "3.3.4";
src = fetchFromGitHub {
owner = "rnwood";
repo = "smtp4dev";
rev = "refs/tags/${version}";
hash = "sha256-ARq5OpFJ4o9KdBXvzOx7QLB8GNfmXWjO0RR4jKP8qRI=";
};
npmRoot = "Rnwood.Smtp4dev/ClientApp";
in
buildDotnetModule {
inherit version src npmRoot;
pname = "smtp4dev";
nativeBuildInputs = [
nodejs
nodejs.python
npmHooks.npmConfigHook
stdenv.cc # c compiler is needed for compiling npm-deps
];
npmDeps = fetchNpmDeps {
src = "${src}/${npmRoot}";
hash = "sha256-VBcfRKYe/uPf6urWuLI5TrnX9bgiKiZKo+N4zL7O3SM=";
};
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
projectFile = "Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj";
nugetDeps = ./deps.nix;
executables = [ "Rnwood.Smtp4dev" ];
postFixup = ''
mv $out/bin/Rnwood.Smtp4dev $out/bin/smtp4dev
'';
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
];
platforms = lib.platforms.unix;
};
}