How to build/run using other profiles? #92
-
Currently, I have a "flake.nix" for my project with contents similar to the following: {
description = "My project's description.";
inputs = {
flake-compat = {
flake = false;
url = "github:edolstra/flake-compat";
};
nci = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:yusdacra/nix-cargo-integration";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = inputs: inputs.nci.lib.makeOutputs {
pkgConfig = common: {
package_a = {
app = true;
build = true;
};
root = ./.;
};
} Using this, I can run "package_a" in the workspace with Looking more into nci, it seems to be using dream2nix and crane behind the scenes. I read that the latter builds projects using the "release" profile by default. Presumably, nci also uses this profile by default, right? In any case, I'd like to know: how would I build/run my package using other profiles, e.g., with the "debug" profile? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If you do |
Beta Was this translation helpful? Give feedback.
-
#97 was merged to support this use-case. |
Beta Was this translation helpful? Give feedback.
#97 was merged to support this use-case.