Comments (6)
turns out nixpkgs-review
brings its own nix in the shell which was a 2.18 != 2.22 in my other shells. Sorry for noise /o\
from nix.
This is surprising because manifest version 3 has been supported since Nix 2.20.
from nix.
@teto is this still a problem?
All older versions of manifest.json should be supported by newer versions of Nix. Nix will automatically upgrade the manifest.json if needed. It just doesn't downgrade when using an older version of Nix.
If it's still a problem it might help to list the version of Nix:
$ nix profile install ./results/warp-terminal
error: profile manifest '/nix/var/nix/profiles/per-user/teto/profile/manifest.json' has unsupported version 3
$ nix --version
from nix.
it still happens, on several computers (more or less same config). I've listed the version in my previous ticket but I was just able to reproduce with nix (Nix) 2.22.0
. I use home-manager if that helps.
Here is the manifest. If that helps I can reduce it:
cat /nix/var/nix/profiles/per-user/teto/profile/manifest.json
{"elements":{"aichat":{"active":true,"attrPath":"legacyPackages.x86_64-linux.aichat","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/bpdyvr51gkn66rgzkb9c8bpy6s3bdgr6-aichat-0.16.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"cargo":{"active":true,"attrPath":"legacyPackages.x86_64-linux.cargo","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/4ry19b6xvzqf98fhq8ijk6zpxv13a483-cargo-1.77.1"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"ddcui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ddcui","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/aclxi5a3r9mfv5l615d811ibjz4xxvsa-ddcui-0.5.4"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"gh-dash":{"active":true,"priority":5,"storePaths":["/nix/store/l5np3x2g6k4vvxxgpjyhnjv1mxsnffj9-gh-dash-3.13.0"]},"git-repo-manager":{"active":true,"attrPath":"packages.x86_64-linux.git-repo-manager","originalUrl":"github:colemickens/nixcfg","outputs":null,"priority":5,"storePaths":["/nix/store/jf5yzjqwzkkh9p7x9hr4k92zs0jsyiqf-git-repo-manager-0.7.16-unstable-2024-04-27"],"url":"github:colemickens/nixcfg/2bbfb3d563a8fb89bceb6ac7a7e73b8f601d1ed4?narHash=sha256-Oqtp2cLlqC9SLi36zmnN58iNPw55ULuoeqZFXk5bzkM%3D"},"git-revise":{"active":true,"attrPath":"legacyPackages.x86_64-linux.git-revise","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/86cx08py46acxc615cnchcfxc5mri2sx-python3.11-git-revise-0.7.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"gitui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gitui","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/zvj4qhq346qyfhl9yh0d183jkcmlq7j2-gitui-0.26.1"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"gnupg":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gnupg","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"gparted":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gparted","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/iql37r18dxnwak7syibaqdh6x9iazqrj-gparted-1.6.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"komikku":{"active":true,"priority":5,"storePaths":["/nix/store/sjki8x8ix25n1nxjm807xxs1q6pz57yx-komikku-1.29.0"]},"libreoffice":{"active":true,"attrPath":"legacyPackages.x86_64-linux.libreoffice","originalUrl":"flake:nixpkgs","outputs":null,"priority":-10,"storePaths":["/nix/store/vfb17gx6y2wmcmkwy0rpwbdla56xw4wy-libreoffice-7.5.9.2-wrapped"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"lutris":{"active":true,"attrPath":"legacyPackages.x86_64-linux.lutris","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/sa66n7i9i03ivh6260khjyjfwm0mjby9-lutris"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-doc":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-doc","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/v7hl0siq0x363sl9m0iyynx82hhn4jlb-nix-doc-0.6.5"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-output-monitor":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-output-monitor","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/l090fngr29b3j6k3blb05l4f8qy8379m-nix-output-monitor-2.1.2"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-universal-prefetch":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-universal-prefetch","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/84nvba94vcya6klxik9yw51m47q2hgjv-nix-universal-prefetch-0.4.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nurl":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nurl","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/rjqb0f1710j8i3a158agyi5bzx20c3pq-nurl-0.3.13"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"ov":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ov","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/00ajp3vah5r9bn208z5644lagc525ay0-ov-0.34.1"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"podman-tui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.podman-tui","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/3mh4sh05jja8whymvsywvjbd9qs8717i-podman-tui-1.0.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"popcorntime":{"active":true,"attrPath":"legacyPackages.x86_64-linux.popcorntime","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/sdcnn8c14aan8m3sgj24zvk0mlap9942-popcorntime-0.5.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"process-compose":{"active":true,"attrPath":"legacyPackages.x86_64-linux.process-compose","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/xiqwdkk4blifr86rgvsh03g0rs36qv2n-process-compose-1.2.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"star-history":{"active":true,"attrPath":"legacyPackages.x86_64-linux.star-history","originalUrl":"git+file:///home/teto/nixpkgs3","outputs":null,"priority":5,"storePaths":["/nix/store/wgb225iw4kq7l9v0fmqn9gmhk51m6zcc-star-history-1.0.21"],"url":"git+file:///home/teto/nixpkgs3?ref=refs/heads/teto/update-lua-packages&rev=fc0af66e43676db32097fefb42a850095619784e"},"sway-easyfocus-unstable":{"active":true,"priority":5,"storePaths":["/nix/store/zzhqhcni6cwgsxxwapn8f9zyd40g9qqs-sway-easyfocus-unstable-2023-11-05"]},"view_json":{"active":true,"attrPath":"packages.x86_64-linux.view_json","originalUrl":"git+file:///home/teto/nova/jinko/dev","outputs":null,"priority":5,"storePaths":["/nix/store/cly4fr2qkp2dz4nr2ds3hpbca6vp94lx-view_json"],"url":"git+file:///home/teto/nova/jinko/dev?ref=refs/heads/matt/more-trial-metrics&rev=4adbaeb5a80fd6aa9de84b79463e272b1ed536a4"},"vlc":{"active":true,"attrPath":"legacyPackages.x86_64-linux.vlc","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/baxb0m4453wnpfhdl6mcxvinp17wfwhg-vlc-3.0.20"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"xdg-terminal-exec-unstable":{"active":true,"priority":5,"storePaths":["/nix/store/cdygis986l0pp43iyjh9k79kl9d63i6a-xdg-terminal-exec-unstable-2023-12-08"]},"ytfzf":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ytfzf","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/wd5m1g8wmixx1c97dllfxs4rsblxzpnq-ytfzf-2.6.2"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"}},"version":3}
from nix.
Recently got this issue on nixos with home-manager:
fabian@nixos ~/D/O/n/main (main) [1]> home-manager -I "nixpkgs=$PWD" switch --keep-going
/nix/store/4mwvnf1h075c6hknpqwfga8s6c1i5w3j-home-manager-generation
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating linkGeneration
Cleaning up orphan links from /home/fabian
No change so reusing latest profile generation 213
Creating home file links in /home/fabian
Activating batCache
No themes were found in '/home/fabian/.config/bat/themes', using the default set
No syntaxes were found in '/home/fabian/.config/bat/syntaxes', using the default set.
Writing theme set to /home/fabian/.cache/bat/themes.bin ... okay
Writing syntax set to /home/fabian/.cache/bat/syntaxes.bin ... okay
Writing metadata to folder /home/fabian/.cache/bat ... okay
Activating installPackages
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3
Oops, Nix failed to install your new Home Manager profile!
Perhaps there is a conflict with a package that was installed using
"nix profile install"? Try running
nix profile list
and if there is a conflicting package you can remove it with
nix profile remove {number | store path}
Then try activating your Home Manager configuration again.
fabian@nixos ~/D/O/n/main (main) [1]> nix profile list
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3
fabian@nixos ~/D/O/n/main (main) [1]>
from nix.
This happened to me when setting nix.package = pkgs.nix
in home-manager.
pkgs.nix
currently points to version 2.18.2
on unstable.
And as stated above by edolstra:
manifest version 3 has been supported since Nix 2.20
So you (@fabianhjr) probably need to use e.g., pkgs.nixVersions.nix_2_21
instead of pkgs.nix
.
from nix.
Related Issues (20)
- [request] support for FIPS 140-2 with openssl provider
- Upload lock held for longer than necessary HOT 3
- Building Nix fails with stack overflow during doc generation on Amazon Linux HOT 5
- Problem with the SSL CA certificate HOT 1
- Configure niceness of build tasks
- nix-build fails to look <paths> up in its arguments HOT 3
- Cannot install on OSX 14.5 (M2) HOT 1
- Flake copying performance regressed on macOS in 2.19 HOT 3
- CLI exit codes
- `nix.settings.preallocate-contents` is not enabled by default
- "Suggest an edit" link in documentation is broken for Experimental commands
- Document (and (re?)name) the "installable" concept in e.g. `nix eval`
- More structured settings in nix store URLs HOT 1
- uncaught exception: eDSRecordAlreadyExists HOT 2
- Incorrect parsing of `or` as a variable in expressions
- More explicit parser dump format for testing
- Clarify the special role of `default.nix`
- Single user installation: Using $HOME/.nix instead of /nix HOT 3
- Garbage collection fails because directory is not empty HOT 5
- Add Gitea/Forgejo flake input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix.