fix: resolve package build blockers

This commit is contained in:
Peter Steinberger 2026-04-26 03:02:50 +01:00
parent 3e8e39bd85
commit 457023efd4
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, watchman }:
{ lib, stdenv, fetchurl }:
let
sources = {
@ -30,8 +30,6 @@ stdenv.mkDerivation {
runHook postInstall
'';
propagatedBuildInputs = [ watchman ];
meta = with lib; {
description = "Universal file watcher with auto-rebuild for any language or build system";
homepage = "https://github.com/steipete/poltergeist";

View File

@ -72,7 +72,7 @@ if stdenv.isLinux then
PNPM_CONFIG_HOME = "/tmp/pnpm-config";
XDG_CACHE_HOME = "/tmp/pnpm-cache";
NPM_CONFIG_USERCONFIG = "/tmp/pnpm-config/.npmrc";
npm_config_nodedir = "${nodejs.dev}";
npm_config_nodedir = "${lib.getDev nodejs}";
npm_config_build_from_source = "1";
PNPM_CONFIG_IGNORE_SCRIPTS = "1";
PNPM_CONFIG_MANAGE_PACKAGE_MANAGER_VERSIONS = "false";
@ -120,6 +120,7 @@ if stdenv.isLinux then
runHook preInstall
mkdir -p "$out/libexec" "$out/libexec/packages" "$out/libexec/apps" "$out/bin"
cp -r dist node_modules "$out/libexec/"
find "$out/libexec/node_modules" -name ".pnpm-workspace-state-v1.json" -delete
cp -r packages/core "$out/libexec/packages/"
cp -r apps/chrome-extension "$out/libexec/apps/"
chmod 0755 "$out/libexec/dist/cli.js"