Skip to content

Commit

Permalink
feat: add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Dec 9, 2024
1 parent ec46554 commit 946ff74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 6 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@

generalBuildInputs = with pkgs; [
bashInteractive
openssl.dev
just
pkg-config
openssl.dev
rocksdb
zstd.dev
];
buildInputs = if pkgs.stdenv.isLinux
buildInputs =
if pkgs.stdenv.isLinux
then generalBuildInputs ++ [ pkgs.jemalloc pkgs.pkgsi686Linux.glibc ]
else generalBuildInputs ++ [ pkgs.darwin.apple_sdk.frameworks.SystemConfiguration ] ;
else generalBuildInputs ++ [ pkgs.darwin.apple_sdk.frameworks.SystemConfiguration ];
nativeBuildInputs = with pkgs; [ git rust clang protobuf sccache ];
in
{
Expand All @@ -43,9 +45,8 @@
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
} // nixpkgs.lib.optionalAttrs pkgs.stdenv.isLinux { JEMALLOC_OVERRIDE = "${pkgs.jemalloc}/lib/libjemalloc.so"; }
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isDarwin { SKIP_WASM_BUILD = "1"; };
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isDarwin { SKIP_WASM_BUILD = "1"; };
};
}
);
}

6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
run-localnet:
cargo xtask local --alice
# cargo xtask local --alice --chain-spec specs/local.json

# run-replica:
# cargo xtask replica --alice

0 comments on commit 946ff74

Please sign in to comment.