add akkoma-fe patch to build it on openssl 3

This commit is contained in:
Charlotte 🦝 Delenk 2022-09-15 15:19:25 +01:00
parent 069d46c734
commit 02d1682709
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 13161 additions and 2 deletions

13147
akkoma/akkoma-fe.patch Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,11 @@
pkgs,
inputs,
}:
with pkgs; rec {
with pkgs; let
mkYarnPackage = (yarn2nix-moretea.override (super: {
nodejs = pkgs.nodejs-16_x;
})).mkYarnPackage;
in rec {
akkoma = beamPackages.mixRelease rec {
pname = "akkoma";
version = inputs.akkoma.lastModifiedDate;
@ -173,10 +177,18 @@ with pkgs; rec {
};
};
};
akkoma-fe-src = applyPatches {
name = "akkoma-fe-src-${inputs.akkoma-fe.lastModifiedDate}";
src = inputs.akkoma-fe;
patches = [
./akkoma-fe.patch
];
};
akkoma-fe = mkYarnPackage rec {
pname = "akkoma-fe";
version = inputs.akkoma-fe.lastModifiedDate;
src = inputs.akkoma-fe;
src = akkoma-fe-src;
patchPhase = ''
sed -i 's/let commitHash = .*/let commitHash = "${inputs.akkoma-fe.rev}"/' build/webpack.prod.conf.js
sed -i 's/.*git rev-parse.*//' build/webpack.prod.conf.js