1 { lib, buildGoModule, fetchFromGitHub, callPackage, stuffbin, nixosTests }:
7 src = fetchFromGitHub {
11 hash = "sha256-eNX+2ens+mz2V8ZBHtFFHDVbi64AAiiREElMjh67Dd8=";
14 vendorHash = "sha256-XAm2VfX1nHWTuAV2COEn8qrqPNv0xbaWgTYCpjrEfMw=";
20 ldflags = [ "-s" "-w" "-X main.version=${version}" ];
23 mv $out/bin/cmd $out/bin/listmonk
26 # Run stuffbin to stuff the frontend and the static in the binary.
33 "static/public:/public"
34 "static/email-templates"
35 "${passthru.frontend}:/admin"
40 stuffbin -a stuff -in $out/bin/listmonk -out $out/bin/listmonk \
41 ${lib.concatStringsSep " " vfsMappings}
45 frontend = callPackage ./frontend.nix { inherit meta version src; };
46 tests = { inherit (nixosTests) listmonk; };
50 description = "High performance, self-hosted, newsletter and mailing list manager with a modern dashboard";
51 mainProgram = "listmonk";
52 homepage = "https://github.com/knadh/listmonk";
53 changelog = "https://github.com/knadh/listmonk/releases/tag/v${version}";
54 maintainers = with maintainers; [ raitobezarius ];
55 license = licenses.agpl3Only;