-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No 'processes' option defined: https://devenv.sh/processes/ #1627
Comments
That's a strange message for a flake project. One gotcha with the flake integration is that you need to add |
yes, that is exactly what i have done. packages = forEachSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
devenv-up = self.devShells.${system}.default.config.procfileScript;
devenv-test = self.devShells.${system}.default.config.test;
api = pkgs.callPackage ./api/package.nix { inherit pkgs naersk; };
api-docker = pkgs.callPackage ./api/docker.nix { inherit pkgs api; };
in
{
devenv-up = devenv-up;
devenv-test = devenv-test;
api = api;
api-docker = api-docker;
}
); |
btw, I haven't looked yet on how devenv actually build docker images, but i built mine with nix: pkgs.dockerTools.buildLayeredImage {
name = api.pname;
tag = "latest";
created = "now";
contents = [ api ];
config = {
Cmd = [
("/bin/" + api.pname)
];
};
}``` |
api-devenv-up = self.devShells.${system}.api.config.procfileScript;
api-devenv-test = self.devShells.${system}.api.config.test;
ui-devenv-up = self.devShells.${system}.ui.config.procfileScript;
ui-devenv-test = self.devShells.${system}.ui.config.test; with devshells: devShells = forEachSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
default = import ./devenv.nix {
inherit inputs pkgs system;
};
api = import ./api/devenv.nix {
inherit inputs pkgs system;
};
ui = import ./ui/devenv.nix {
inherit inputs pkgs system;
};
}
); running (masked dirs) warning: Git tree '/..' is dirty
error: flake 'git+file:///....' does not provide attribute 'packages.x86_64-linux.devenv-up', 'legacyPackages.x86_64-linux.devenv-up' or 'devenv-up' this shows that a default |
same goes with |
Describe the bug
using flake with multiple devenv as follow
then running the following:
nix develop --no-pure-eval .#api -> this works and i get the `api` env
when I then try to
devenv up #api
I get the following error:
which is weird as the ./api/devenv.nix has postgress service and cargo watch process
The text was updated successfully, but these errors were encountered: