mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
overlay
This commit is contained in:
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(_: prev: {
|
||||
legcord = prev.legcord.overrideAttrs (old: {
|
||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ prev.nodePackages.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"
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user