-
-
Notifications
You must be signed in to change notification settings - Fork 549
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: add flake-compat #743
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for this!
Would you be able to elaborate there? |
(import | ||
( | ||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in | ||
fetchTarball { | ||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) | ||
{ src = ./.; } | ||
).defaultNix |
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.
It's probably best to just have either default.nix
or shell.nix
, and not both? nix-shell
supports both, but prefers shell.nix
- https://nixos.org/manual/nix/stable/command-ref/nix-shell.html
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.
Yes, we can live without a shell.nix
. Without default.nix
packages attributes can't be built.
The pinned rust version in
The fix is updating the pinned versions using the command |
Ahh I see, thank you! I need to dig into nix sometime, been on my todo basically forever |
d5d51c4
to
f18f0d7
Compare
Support nix (non-flakes), continuation of #477.
using nix-shell (legacy)
using nix-build (legacy)