question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide example in README for using `nix (shell|build) mach-nix#gen.(python|docker).package1`

See original GitHub issue

Thank you for your work, I am sure as soon as I get it working it’s gonna be super helpful! I am new to Nix, so maybe this is an obvious thing

I was really intrigued by the usage of nix (shell|build) mach-nix#gen.python.package1 as a way of diving into a shell with package1 installed.

I have tried to substitute package1 with:

  1. The name in Pypi: So the command becomes nix shell mach-nix#gen.python.requests. And I get the following output message: error: packages.x86_64-linux.gen.python.requests.meta.priority is not an Integer.

  2. The name of the package in nixpkgs: So the command becomes nix shell mach-nix#gen.python.python39Packages\.requests. And I get a similar error saying that such attribute is not provided by flake:mach-nix.

Hence, could you provide an example in the README.md for helpless souls like me that are just getting into Nix?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Danielhp95commented, Jul 29, 2022

Thank you for your time!

I made sure to update my mach-nix copy via nix flake update and I had the same output. I tried to run the flake directly from github as you said it worked for you, and still got the same error:

image

I shall start digging into the source code to see if I find something

0reactions
573commented, Oct 7, 2022

Does #503 fix it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

nix/README.md at master · binder-examples/nix - GitHub
100% reproducible environments (pin to exact commit in repository); both a source and binary package repository; allows customized compilation and version of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found