wow
This commit is contained in:
parent
7d47819b9c
commit
ef437d5b15
18 changed files with 222 additions and 86 deletions
|
|
@ -3,12 +3,47 @@
|
|||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
nixcordPackages = inputs.nixcord.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
|
||||
patchGifenc = ''
|
||||
substituteInPlace package.json \
|
||||
--replace-fail \
|
||||
'github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3'
|
||||
substituteInPlace pnpm-lock.yaml \
|
||||
--replace-fail \
|
||||
'github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3' \
|
||||
--replace-fail \
|
||||
'https://codeload.github.com/mattdesl/gifenc/tar.gz/64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3' \
|
||||
--replace-fail \
|
||||
'resolution: {gitHosted: true, tarball: 1.0.3}' \
|
||||
'resolution: {integrity: sha512-xdr6AdrfGBcfzncONUOlXMBuc5wJDtOueE3c5rdG0oNgtINLD+f2iFZltrBRZYzACRbKr+mSVU/x98zv2u3jmw==}'
|
||||
'';
|
||||
|
||||
refreshPnpmDeps = package: hash:
|
||||
package.overrideAttrs (old: {
|
||||
postPatch = (old.postPatch or "") + patchGifenc;
|
||||
pnpmDeps = old.pnpmDeps.overrideAttrs (deps: {
|
||||
outputHash = hash;
|
||||
outputHashAlgo = "sha256";
|
||||
postPatch = (deps.postPatch or "") + patchGifenc;
|
||||
});
|
||||
});
|
||||
in
|
||||
{
|
||||
imports = [ inputs.nixcord.homeModules.nixcord ];
|
||||
programs.nixcord = {
|
||||
enable = true;
|
||||
# Use Nixcord's pinned package set; the host package set's pnpm hook
|
||||
# cannot consume the Equicord Git tarball snapshot offline.
|
||||
useGlobalPkgs = false;
|
||||
|
||||
discord = {
|
||||
vencord.package = refreshPnpmDeps nixcordPackages.vencord "sha256-Me4M6ATfnTMifltjeCl/zn/qUrBUwOJuWkrCPw4VU5Q=";
|
||||
equicord.package = refreshPnpmDeps nixcordPackages.equicord "sha256-wXQg11c6EUT0xFlP1pYwMNzdVKdg5Gv3gcdolDrnGCk=";
|
||||
branches = [ "stable" ];
|
||||
# Electron's Vulkan backend crashes on the NVIDIA render node under
|
||||
# native Wayland. Keep Wayland and hardware acceleration, but use GL.
|
||||
|
|
|
|||
Loading…
Reference in a new issue