Skip to content

Commit

Permalink
add movementswap to flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Primata committed Jun 19, 2024
1 parent dce406c commit db700ed
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 36 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,25 @@
# celestia-app
celestia-app = import ./nix/celestia-app.nix { inherit pkgs; };

movementswap-core = pkgs.stdenv.mkDerivation {
pname = "movementswap-core";
version = "branch-main";
src = pkgs.fetchFromGitHub {
owner = "movementlabsxyz";
repo = "movementswap-core";
rev = "d5b1075999fad5a0e78c68f9d0848d37680d9f30";
sha256 = "sha256-l7oLh7Rq0qUfa8nI+e2nPWYe1kOARKrfFBJubZkziZw=";
};
installPhase = ''
cp -r . $out
'';
meta = with pkgs.lib; {
description = "Movementswap core repository";
homepage = "https://github.com/movementlabsxyz/movementswap-core";
license = licenses.asl20;
};
};

# aptos-faucet-service
aptos-faucet-service = import ./nix/aptos-faucet-service.nix {
inherit pkgs;
Expand All @@ -142,6 +161,8 @@
packages.celestia-node = celestia-node;

packages.celestia-app = celestia-app;

packages.movementswap-core = movementswap-core;

# Used for workaround for failing vendor dep builds in nix
devShells.docker-build = mkShell {
Expand All @@ -167,13 +188,25 @@
OPENSSL_DEV = pkgs.openssl.dev;
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
MONZA_APTOS_PATH = monza-aptos;
MOVEMENT_SWAP_PATH = movementswap-core;

buildInputs = [] ++buildDependencies ++sysDependencies ++testDependencies;
nativeBuildInputs = [] ++buildDependencies ++sysDependencies;

shellHook = ''
#!/bin/bash -e
// # Movement Swap Core
echo "Building movement-swap-core..."
cp -R "$MOVEMENT_SWAP_PATH" $MOVEMENT_BASE_STORAGE_PATH/movementswap-core
cd $MOVEMENT_BASE_STORAGE_PATH/movementswap-core
# curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3
cd $MOVEMENT_SWAP_PATH/tests/typescript-sdk
npm install pnpm
pnpm install
echo "Monza Aptos path: $MONZA_APTOS_PATH"
echo "Movementswap path: $MOVEMENT_SWAP_PATH"
cat <<'EOF'
_ _ __ _ _ ____ _ _ ____ __ _ ____
( \/ ) / \ / )( \( __)( \/ )( __)( ( \(_ _)
Expand All @@ -186,4 +219,6 @@
};
}
);
}
}


2 changes: 2 additions & 0 deletions networks/suzuka/suzuka-client/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ async fn test_hey_partners_internal() -> Result<(), anyhow::Error> {
let combined_path = if let Ok(path) = env::var("MOVEMENT_SWAP_PATH") {
root.join(path)
};



println!("Combined path: {:?}", combined_path);
let output =
Expand Down

0 comments on commit db700ed

Please sign in to comment.