Closed gotcha closed 1 year ago
What are the steps to reproduce this?
I installed devenv
via
nix profile install nixpkgs#cachix
cachix use devenv
nix profile install github:cachix/devenv/v0.3
Steps to reproduce:
$ devenv init
direnv
$ devenv gc
@sandydoo could you test this?
Do you have M1 macos?
Can you paste /etc/nix/nix.conf
?
Do you have M1 macos?
Nope
Can you paste
/etc/nix/nix.conf
?
build-users-group = nixbld
trusted-users = root gotcha
I updated to 0.4 and get the very similar error:
✦2 ❯ devenv gc
Counting old devenvs ...
error: flake 'path:/Users/gotcha/tmp/test-devenv-0.4' does not provide attribute 'packages.x86_64-darwin.default' or 'defaultPackage.x86_64-darwin'
/Users/gotcha/.nix-profile/bin/devenv: line 156: / 1024 / 1024 : syntax error: operand expected (error token is "/ 1024 / 1024 ")
Works on my m1. It's an x86 issue or something with your used devenv.nix
Could you try using the latest main branch?
https://github.com/cachix/devenv/commit/93b562bd8706d1d5bb330c25be7ca780ddadbb8c might have fixed it.
@domenkozar Happy to test it. But I have no idea how to use the main branch ?
nix profile install github:cachix/devenv/main
Not solved. This is what I did:
$ nix profile install github:cachix/devenv/main
$ mkdir bla
$ cd bla
$ devenv init
$ devenv gc
Had a call with @gotcha and it seems to be resolved, if it comes back let me know.
When running
devenv gc
, I get the following error and output: