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
nix-prefetch: make fit for flakes #95137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did the following
./result/bin/nix-prefetch fetchFromGitHub --owner b4b4r07 --repo enhancd
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
The fetcher will be called as follows:
> fetchFromGitHub {
> owner = "b4b4r07";
> repo = "enhancd";
> rev = "f0f894029d12eecdc36c212fa3ad14f55468d1b7";
> sha256 = "0000000000000000000000000000000000000000000000000000";
> }
sha256-y/NZN1lRirO24jDT90ozz65sWgi1Sqp6H5JYOYZyYuI=
I guess the warning is because this expression has the stable nix wrapped while my system is using nixUnstable
.
Also doing msteen/nix-prefetch@4b5373e in this expression would alleviate this, wonder what your thoughts are on this.
Adding nixUnstable to the path won't work because command line flags are not compatible with this nix-prefetch. |
Ahh right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, seems to be the way to go.
Yes! Thank you both! |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)