{ lib, beamPackages, buildNpmPackage, rustPlatform, fetchFromGitHub, nodejs, runCommand, nixosTests, npm-lockfile-fix, brotli, tailwindcss, esbuild, ... }: let pname = "plausible"; version = "2.1.4"; mixEnv = "ce"; src = fetchFromGitHub { owner = "plausible"; repo = "analytics"; rev = "v${version}"; hash = "sha256-wV2zzRKJM5pQ06pF8vt1ieFqv6s3HvCzNT5Hed29Owk="; postFetch = '' ${lib.getExe npm-lockfile-fix} $out/assets/package-lock.json sed -ie ' /defp deps do/ { n /\[/ a\ \{:rustler, ">= 0.0.0", optional: true \}, } ' $out/mix.exs cat >> $out/config/config.exs <> config/config.exs <