29 lines
836 B
Nix
29 lines
836 B
Nix
# Module: Parsec Cloud Client
|
|
# Description: Installs Parsec Cloud client (v3) with CLI and GUI
|
|
# Dependencies: parsec-cloud-nix flake input
|
|
# Note: Requires increased Node.js heap size during build (workaround)
|
|
|
|
{ pkgs, parsec-cloud-nix, ... }:
|
|
|
|
let
|
|
pc = parsec-cloud-nix.packages.${pkgs.stdenv.hostPlatform.system};
|
|
|
|
# WORKAROUND: Parsec build runs out of memory without increased heap size
|
|
# This increases Node.js memory limit from default 512MB to 8GB
|
|
nativeBuildPatched = pc.parsec-cloud.v3.native-client-build.overrideAttrs (old: {
|
|
NODE_OPTIONS = "--max-old-space-size=8192";
|
|
});
|
|
|
|
parsecClientPatched = pc.parsec-cloud.v3.client.override {
|
|
native-client-build = nativeBuildPatched;
|
|
};
|
|
|
|
parsecCli = pc.parsec-cloud.v3.cli;
|
|
in
|
|
{
|
|
environment.systemPackages = [
|
|
parsecClientPatched
|
|
parsecCli
|
|
];
|
|
}
|