Skip to content
Discussion options

You must be logged in to vote

oh sorry yeah that makes perfect sense since cargo is complaining that the environment got changed because the lib only exists in deps drv and not main derivation. you can just do:

    nci.projects."utracker" = let
      commonDeps = {
        buildInputs = with pkgs; [ libjack2 ];
        nativeBuildInputs = with pkgs; [ pkg-config ];
      };
    in {
      path = ./.;
      depsDrvConfig.mkDerivation = commonDeps;
      drvConfig.mkDerivation = commonDeps;
      # export all crates (packages and devshell) in flake outputs
      # alternatively you can access the outputs and export them yourself
      export = true;
    };

or similar. or if editor's the only one needing libjack2 you can…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@nemonical
Comment options

@90-008
Comment options

@nemonical
Comment options

@90-008
Comment options

Answer selected by nemonical
@nemonical
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants