-
Notifications
You must be signed in to change notification settings - Fork 87
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
pkgs.root
inside devshells.<name>.devshell.packagesFrom
raises "not of type package or string convertible to it
" error
#270
Comments
Apparently the same underlying error can be reproduced using this simple [devshell]
packagesFrom = ["i3"] Error output
Looks like the error is triggered by devshell.packagesFrom = [
(pkgs.i3.overrideAttrs { separateDebugInfo = false; })
]; Apparently the problem comes from https://github.com/NixOS/nixpkgs/blob/7c5f52e2bf743401ab9253bab048883d66ad357f/pkgs/stdenv/generic/make-derivation.nix#L282 — that code adds a path instead of a proper derivation to
Maybe Lines 200 to 205 in 5ddecd6
|
However, the current implementation of
With the stock |
Describe the bug
The
root
derivation inside Nixpkgs is the package of CERN ROOT, a C++-based data analysis framework.When using
devshell.flakeModule
and specifydevshells.root-devenv.devshell.packagesFrom = [ pkgs.root ];
, wherepkgs
is from the input of the function assigned toperSystem
flake-part attribute, the following error is triggeredTo Reproduce
Steps to reproduce the behavior:
flake.nix
with the following contentflake.lock
with the following contentnix flake check path:.
and see error.nix develop path:. root-devenv
and see error.pkgs.root
withpkgs.hello
, and the error will disappear.Expected behavior
The above
flake.nix
andflake.lock
run without error, as if thepkgs.root
were replaced withpkgs.hello
.System information
nix-info -m
"x86_64-linux"
Linux 6.1.31, NixOS, 23.05 (Stoat), 23.05.20230604.e7603eb
yes
yes
nix-env (Nix) 2.15.0
/nix/store/yd0l7092ykql0k60fn1jxlqxl16wp4vn-source
Additional context
The text was updated successfully, but these errors were encountered: