Skip to content

Commit

Permalink
plausible: 2.1.4 -> 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Mar 4, 2025
1 parent 9ce2c65 commit 106f5e5
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions pkgs/servers/web-apps/plausible/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

let
pname = "plausible";
version = "2.1.4";
version = "2.1.5";
mixEnv = "ce";

src = fetchFromGitHub {
owner = "plausible";
repo = "analytics";
rev = "v${version}";
hash = "sha256-wV2zzRKJM5pQ06pF8vt1ieFqv6s3HvCzNT5Hed29Owk=";
hash = "sha256-4gwK/AxzhsU0vgvKgIXrOyQLCgZMeZyKjj7PWbUmJ+8=";
postFetch = ''
${lib.getExe npm-lockfile-fix} $out/assets/package-lock.json
sed -ie '
Expand Down Expand Up @@ -75,7 +75,7 @@ let
src
mixEnv
;
hash = "sha256-N6cYlYwNss2FPYcljANJYbXobmLFauZ64F7Sf/+7Ctg=";
hash = "sha256-edQ8byeV0WUaYDYMnmrstC6L2jztidR/JikGZLpX3WE=";
};

mjmlNif = rustPlatform.buildRustPackage {
Expand All @@ -92,21 +92,24 @@ let
};
};

patchedMixFodDeps = runCommand mixFodDeps.name {
inherit (mixFodDeps) hash;
} ''
mkdir $out
cp -r --no-preserve=mode ${mixFodDeps}/. $out
mkdir -p $out/mjml/priv/native
for lib in ${mjmlNif}/lib/*
do
# normalies suffix to .so, otherswise build would fail on darwin
file=''${lib##*/}
base=''${file%.*}
ln -s "$lib" $out/mjml/priv/native/$base.so
done
'';
patchedMixFodDeps =
runCommand mixFodDeps.name
{
inherit (mixFodDeps) hash;
}
''
mkdir $out
cp -r --no-preserve=mode ${mixFodDeps}/. $out
mkdir -p $out/mjml/priv/native
for lib in ${mjmlNif}/lib/*
do
# normalies suffix to .so, otherswise build would fail on darwin
file=''${lib##*/}
base=''${file%.*}
ln -s "$lib" $out/mjml/priv/native/$base.so
done
'';

in
beamPackages.mixRelease rec {
Expand Down

0 comments on commit 106f5e5

Please sign in to comment.