Skip to content

Commit 38601b1

Browse files
Merge pull request #1329 from input-output-hk/chore/LW-10722-fix-oci
[LW-10722] chore: fix OCI after #1325
2 parents 2b1ac37 + 268201f commit 38601b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nix/cardano-services/packages.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ in {
5656
buildInputs = oldAttrs.buildInputs ++ [nixpkgs.pkg-config nixpkgs.libusb1];
5757
# run actual build
5858
buildPhase = ''
59-
yarn workspace @cardano-sdk/cardano-services run build
59+
yarn workspace @cardano-sdk/cardano-services run build:cjs
6060
'';
6161
# override installPhase to only install what's necessary
6262
installPhase = ''
@@ -71,12 +71,16 @@ in {
7171
mkdir -p $out/libexec/$sourceRoot/packages/$p
7272
cp -r packages/$p/dist $out/libexec/$sourceRoot/packages/$p/dist
7373
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
7475
done
7576
cp -r ${production-deps}/libexec/$sourceRoot/packages/cardano-services/config $out/libexec/$sourceRoot/packages/cardano-services/config
7677
7778
cd "$out/libexec/$sourceRoot"
7879
7980
runHook postInstall
81+
82+
# Test that Node.js loads our code correctly:
83+
$out/bin/cli --version
8084
'';
8185
# add a bin script that should be used to run cardano-services CLI
8286
postInstall = ''

0 commit comments

Comments
 (0)