diff --git a/flake.nix b/flake.nix index 2475a07..538825a 100755 --- a/flake.nix +++ b/flake.nix @@ -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 { @@ -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"; }; }; } ); } - diff --git a/justfile b/justfile new file mode 100644 index 0000000..61e1e94 --- /dev/null +++ b/justfile @@ -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