mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
20 lines
572 B
Nix
20 lines
572 B
Nix
{ ... }:
|
|
|
|
{
|
|
nixpkgs.overlays = [
|
|
(_: prev: {
|
|
legcord = prev.legcord.overrideAttrs (old: {
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ prev.asar ];
|
|
|
|
postInstall = (old.postInstall or "") + ''
|
|
asarFile=$(find $out -name "app.asar" -print -quit)
|
|
asar extract "$asarFile" "$TMPDIR/legcord-src"
|
|
substituteInPlace "$TMPDIR/legcord-src/ts-out/main.js" \
|
|
--replace 'corsEnabled: false,' 'corsEnabled: true,'
|
|
asar pack "$TMPDIR/legcord-src" "$asarFile"
|
|
'';
|
|
});
|
|
})
|
|
];
|
|
}
|