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

Specify python version in flake #540

Open
LLBlumire opened this issue Mar 22, 2023 · 3 comments
Open

Specify python version in flake #540

LLBlumire opened this issue Mar 22, 2023 · 3 comments

Comments

@LLBlumire
Copy link

When importing mach-nix with fetchGit, it's possible to set the python version with python = "python38";, there is no documentation on how to do something equivalent (if it is even possible) when working with flakes.

@waynee95
Copy link

I would like to know this too!

@TyberiusPrime
Copy link
Collaborator

here's how I do it

  outputs =
    { self, ..., mach-nix, pypi-deps-db, ... }:
...
        mach-nix_ = (import mach-nix) {
          inherit pkgs;
          pypiDataRev = pypi-deps-db.rev;
          pypiDataSha256 = pypi-deps-db.narHash;
          python = "python310";
        };

@TyberiusPrime
Copy link
Collaborator

See #556 for a full example.

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

No branches or pull requests

3 participants