-
Hello, I am very new to Nix, and I'm trying to figure out how to set up a Nix development environment for a project I'm working on. {...}: {
perSystem = {pkgs, ...}: {
# declare projects
# TODO: change this to your workspace's path
nci.projects."utracker" = {
path = ./.;
# export all crates (packages and devshell) in flake outputs
# alternatively you can access the outputs and export them yourself
export = true;
};
# configure crates
nci.crates = {
"jack-sys" = {
drvConfig.mkDerivation = {
buildInputs = [ pkgs.jack2.dev ];
nativeBuildInputs = [ pkgs.pkg-config ];
};
};
};
};
} but the build still fails saying it can't find |
Beta Was this translation helpful? Give feedback.
Answered by
90-008
Mar 12, 2025
Replies: 1 comment 9 replies
-
you want to configure your own crates (not the dependencies). so if your crate was named "utracker" you'd do |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
or similar. or if editor's the only one needing libjack2 you can…