user4960: I've got the following nix-shell:
let
   src = builtins.fetchGit {
      url = "git@github.com:input-output-hk/plutus-apps.git";
      # url = "https://github.com/input-output-hk/plutus-apps.git";
      ref = "main";
      # rev = "4ecc1d9350e9897557d2a15699a9ace7df665a01";
    };
    in
let
  packages = import "${src}/default.nix" {};
in
with packages;
with pkgs;

mkShell {
  src = builtins.toString ./.;

  buildInputs = [
    wget gnupg coreutils
    which less curl ripgrep tree
    gitMinimal openssh man-db
  ] ++ (with plutus-apps; [
    haskell-language-server
    cabal-install
    hlint
    (haskell.project.ghcWithPackages (ps: with ps; [
      playground-common
      plutus-contract
      plutus-ledger
      plutus-ledger-api
      plutus-pab
      plutus-tx
      plutus-tx-plugin
      plutus-doc
      plutus-use-cases
      # cardano-node.cardano-cli
      freer-extras]))]);
  GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
  LANG = "C.UTF-8";
  LC_ALL = "C.UTF-8";
  PAGER="less -R";
  shellHook = ''
    ulimit -Sv 8388608
    ulimit -v 10485760
  ''; }

Under cabal project it always fails with error if I just add cardano-cli in build-depends
Can someone help ?

user4960: Just modify the following lines:
let packages = import "${src}/default.nix" {};
cardano_pkgs = import "${cardano-node}/shell.nix" {};
in
  with packages;
  with pkgs; with cardano_pkgs;

and add cardano-cli to packages search
 ...
 plutus-doc
 plutus-use-cases
 cardano-cli
 freer-extras]))]);
 ...


4960: <p>I've got the following nix-shell:</p>
<pre><code>let
   src = builtins.fetchGit {
      url = &quot;git@github.com:input-output-hk/plutus-apps.git&quot;;
      # url = &quot;https://github.com/input-output-hk/plutus-apps.git&quot;;
      ref = &quot;main&quot;;
      # rev = &quot;4ecc1d9350e9897557d2a15699a9ace7df665a01&quot;;
    };
    in
let
  packages = import &quot;${src}/default.nix&quot; {};
in
with packages;
with pkgs;

mkShell {
  src = builtins.toString ./.;

  buildInputs = [
    wget gnupg coreutils
    which less curl ripgrep tree
    gitMinimal openssh man-db
  ] ++ (with plutus-apps; [
    haskell-language-server
    cabal-install
    hlint
    (haskell.project.ghcWithPackages (ps: with ps; [
      playground-common
      plutus-contract
      plutus-ledger
      plutus-ledger-api
      plutus-pab
      plutus-tx
      plutus-tx-plugin
      plutus-doc
      plutus-use-cases
      # cardano-node.cardano-cli
      freer-extras]))]);
  GIT_SSL_CAINFO = &quot;${cacert}/etc/ssl/certs/ca-bundle.crt&quot;;
  LANG = &quot;C.UTF-8&quot;;
  LC_ALL = &quot;C.UTF-8&quot;;
  PAGER=&quot;less -R&quot;;
  shellHook = ''
    ulimit -Sv 8388608
    ulimit -v 10485760
  ''; }
</code></pre>
<p>Under cabal project it always fails with error if I just add cardano-cli in build-depends</p>
<p>Can someone help ?</p>
 4960: <p>Just modify the following lines:</p>
<pre><code>let packages = import &quot;${src}/default.nix&quot; {};
cardano_pkgs = import &quot;${cardano-node}/shell.nix&quot; {};
in
  with packages;
  with pkgs; with cardano_pkgs;
</code></pre>
<p>and add cardano-cli to packages search</p>
<pre><code> ...
 plutus-doc
 plutus-use-cases
 cardano-cli
 freer-extras]))]);
 ...
</code></pre>
