Skip to content
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 Shell #1756

Closed
wants to merge 2 commits into from
Closed

Nix Shell #1756

wants to merge 2 commits into from

Conversation

pelasgus
Copy link

Includes trunk; Installing trunk via cargo on Nix breaks after a few gcs

Includes trunk; Installing trunk via cargo on Nix breaks after a few gcs
@pelasgus
Copy link
Author

There are currently some issues with the current configuration; will get on it tomorrow

@rambip
Copy link
Contributor

rambip commented Sep 20, 2023

you can already use nix develop if you have flakes.
Just add it to flake.nix in mkShell

You could also add cargo make

@rambip
Copy link
Contributor

rambip commented Sep 21, 2023

I think this pr #1763 solves your problem.
You just have to replace shell.nix by:

(import (
  fetchTarball {
    url = "https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
    sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5"; }
) {
  src =  ./.;
}).shellNix

(see https://nixos.wiki/wiki/Flakes#Using_flakes_with_stable_Nix for help)

@benwis
Copy link
Contributor

benwis commented Dec 18, 2023

Yeah, I mean I'm not really against adding a nix-shell file, but it seems like most Nix projects I see are using the flake.nix file, and @rambip has a workaround for nix-shell. @pelasgus does that work for you?

@benwis
Copy link
Contributor

benwis commented Jan 13, 2024

I'm going to close this for now, as it seems like most Nix projects use flakes.

@benwis benwis closed this Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants