Skip to content

[LW-10722] chore: fix OCI after #1325 #1329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading