-
Notifications
You must be signed in to change notification settings - Fork 335
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
Installing external Flakes partly broken since 1.1/ devenv-2.24 #1456
Comments
I have just checked whether there is a general problem with Nix 2.24 with this Flake. But without devenv the build works for me with both, 2.18.5 and 2.24.6. |
I am currently trying to narrow down with overlays starting from which change the error occurs. With an overlay that only overrides parts of
Overlay: (self: super: {
devenv-debug = super.devenv.override {
rustPlatform = super.rustPlatform // {
buildRustPackage =
args:
super.rustPlatform.buildRustPackage (
args
// {
version = "debug";
src = super.fetchFromGitHub {
owner = "cachix";
repo = "devenv";
rev = "8c115a9222133af25fa08330982c4ceae9e24563";
#hash= "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
hash = "sha256-q/ERT4Ui315opFz4h4+BsJ/zrTYdXkwq13vvrpL+KzM=";
};
cargoHash = "sha256-D05hjH9Io1h7Yn8CQabHbiXXLXj2Bf5nksJMKublmPU=";
}
);
};
};
}) |
Update: devenv 1.2 with dev-env-2.21 nix has the same behaviour, then build from the latest nixpkgs-unstable ( |
I think I run into the same issue, but with other errors. I have a really hard time to figure out what is going wrong, as with a normal
The error:
It seems devenv overrides inputs/nixpkgs in some places? |
With devenv 1.3 the error message is now less verbose:
|
The reason why this is failing is because lazy-trees branch is incomplete now, give me ~week to come up with a plan how we will properly address this. |
Aah I wasn't aware that was used. That certainly explains the behaviour 👍 |
Describe the bug
After upgrading devenv from version v1.0.8 to v1.1.0, devenv stopped working with my devenv.nix with the following error:
evaluating derivation 'git+file:///Users/Zaunei/repos/devenv-flake-import#devShells.aarch64-darwin.default'Assertion failed: (false), function operator(), file src/libexpr/primops.cc, line 76.
Since the error message was not informative for me, I started to remove parts of the config to find the cause.
It happens with some packages that are referenced by inputs, but not with all of them. I noticed it with flakes in private Git repos, but I found the sshuttle Flake with the same behavior, so I can offer a test repo to reproduce it. The sshuttle Flake is also very similar to mine. Installing colmena using the flake in devenv still works with 1.1.0.
Both flakes build without Devenv without any problems.
I am still quite new to Nix, maybe I am doing something wrong, but so far it has worked well and colmena is still working therefore I am opening a bug report.
To reproduce
Repository for reproduction: https://github.com/Zaunei/devenv-flake-import
Running
devenv shell
with devenv 1.0.x: worksRunning
devenv shell
with devenv 1.1.0 leads to the following error:After removing
sshuttle.sshuttle
,devenv shell
also works with devenv 1.1.0 again.Version
devenv 1.1.0 (aarch64-darwin)
installed with nix-darwin, but I was also able to reproduce it with a nix profiles installation.Also tested with NixOS 24.05, x86_64-linux.
The text was updated successfully, but these errors were encountered: