Skip to content

Commit 80461b3

Browse files
committed
pebble-tool: Include nodejs in wrapper path
Fixes failing to run pebble new-project outside of a pebbleEnv shell, due to initial SDK setup requiring npm.
1 parent fa3385e commit 80461b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

derivations/pebble-tool/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
fetchFromGitHub,
66
makeWrapper,
77
freetype,
8+
nodejs,
89
python2Packages,
910
pyv8,
1011
zlib,
@@ -42,6 +43,8 @@ python2Packages.buildPythonPackage {
4243

4344
nativeBuildInputs = [ makeWrapper ];
4445

46+
buildInputs = [ nodejs ];
47+
4548
propagatedBuildInputs =
4649
builtins.attrValues pythonLibs
4750
++ (with python2Packages; [
@@ -65,6 +68,7 @@ python2Packages.buildPythonPackage {
6568

6669
postFixup = ''
6770
wrapProgram $out/bin/pebble \
71+
--prefix PATH : ${lib.makeBinPath [ nodejs ]} \
6872
--prefix LD_LIBRARY_PATH : ${rpath} \
6973
--prefix DYLD_LIBRARY_PATH : ${rpath} \
7074
--set PHONESIM_PATH ${pythonLibs.pypkjs}/bin/pypkjs

0 commit comments

Comments
 (0)