Closed holzingk closed 7 months ago
Try adding a devShells.default = pkgs.mkShell { };
on the same level as the packages and apps entries.
Ok. Now I have
{
description = "Flake utils demo";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = pkgs.mkShell { };
packages = rec {
hello = pkgs.hello;
default = hello;
};
apps = rec {
hello = flake-utils.lib.mkApp { drv = self.packages.${system}.hello; };
default = hello;
};
}
);
}
Still gives me the same error.
Make sure you have Nix > 2.18: nix --version
or replace the line with devShell = pkgs.mkShell { };
(which is deprecated now)
After the upgrade the issue is gone. Thanks!
Maybe a minimum version should be mentioned in the README somewhere.
When I run the eachDefaultSystem example with
nix develop
I get:I am using nix through home manager on opensuse Tumbleweed