File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 56
56
buildInputs = oldAttrs . buildInputs ++ [ nixpkgs . pkg-config nixpkgs . libusb1 ] ;
57
57
# run actual build
58
58
buildPhase = ''
59
- yarn workspace @cardano-sdk/cardano-services run build
59
+ yarn workspace @cardano-sdk/cardano-services run build:cjs
60
60
'' ;
61
61
# override installPhase to only install what's necessary
62
62
installPhase = ''
71
71
mkdir -p $out/libexec/$sourceRoot/packages/$p
72
72
cp -r packages/$p/dist $out/libexec/$sourceRoot/packages/$p/dist
73
73
cp -r packages/$p/package.json $out/libexec/$sourceRoot/packages/$p/package.json
74
+ ln -s $out/libexec/$sourceRoot/packages/$p/package.json $out/libexec/$sourceRoot/packages/$p/dist/package.json
74
75
done
75
76
cp -r ${ production-deps } /libexec/$sourceRoot/packages/cardano-services/config $out/libexec/$sourceRoot/packages/cardano-services/config
76
77
77
78
cd "$out/libexec/$sourceRoot"
78
79
79
80
runHook postInstall
81
+
82
+ # Test that Node.js loads our code correctly:
83
+ $out/bin/cli --version
80
84
'' ;
81
85
# add a bin script that should be used to run cardano-services CLI
82
86
postInstall = ''
You can’t perform that action at this time.
0 commit comments