mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
discord
This commit is contained in:
3 files changed
+1
-21
No files matched your search
@@ -8,7 +8,6 @@
|
||||
./gaming
|
||||
./hardware
|
||||
./networking
|
||||
./overlays
|
||||
./services
|
||||
./system
|
||||
./users
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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"
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user