Skip to content

Commit

Permalink
Merge pull request #1329 from input-output-hk/chore/LW-10722-fix-oci
Browse files Browse the repository at this point in the history
[LW-10722] chore: fix OCI after #1325
  • Loading branch information
gytis-ivaskevicius authored Jun 12, 2024
2 parents 2b1ac37 + 268201f commit 38601b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix/cardano-services/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ in {
buildInputs = oldAttrs.buildInputs ++ [nixpkgs.pkg-config nixpkgs.libusb1];
# run actual build
buildPhase = ''
yarn workspace @cardano-sdk/cardano-services run build
yarn workspace @cardano-sdk/cardano-services run build:cjs
'';
# override installPhase to only install what's necessary
installPhase = ''
Expand All @@ -71,12 +71,16 @@ in {
mkdir -p $out/libexec/$sourceRoot/packages/$p
cp -r packages/$p/dist $out/libexec/$sourceRoot/packages/$p/dist
cp -r packages/$p/package.json $out/libexec/$sourceRoot/packages/$p/package.json
ln -s $out/libexec/$sourceRoot/packages/$p/package.json $out/libexec/$sourceRoot/packages/$p/dist/package.json
done
cp -r ${production-deps}/libexec/$sourceRoot/packages/cardano-services/config $out/libexec/$sourceRoot/packages/cardano-services/config
cd "$out/libexec/$sourceRoot"
runHook postInstall
# Test that Node.js loads our code correctly:
$out/bin/cli --version
'';
# add a bin script that should be used to run cardano-services CLI
postInstall = ''
Expand Down

0 comments on commit 38601b1

Please sign in to comment.