Add command line tool to Nixpkgs?
See original GitHub issueUsing nixUnstable, I tried installing mach-nix with:
nix registry add mach github:DavHau/mach-nix
nix search mach
And I encountered:
warning: --- Large path ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
dumping very large path (> 256 MiB); this may run out of memory
warning: --- Large path --- nix-daemon
dumping very large path (> 256 MiB); this may run out of memory
[1 copied (75.7 MiB), 150.2/54.5 MiB DL] downloading 'https://github.com/DavHau/nix-pypi-fetcher/tarball/e105186d0101ead100a64e86b1cd62abd1482error: --- EvalError --------------------------------------------------------------------------------------------------------------------- nix
at: (46:24) in file: /nix/store/jndn6xr4zk84wy746qg3kcajf7clg1h0-nix-pypi-fetcher-src/default.nix
45| '';
46| allNames = fromJSON (readFile allNamesJsonFile);
| ^
47| in
cannot read '/nix/store/q3v00s260vb7c5b8k95jxbzhhrhjss7r-all-package-names', since path '/nix/store/vpxwskniiixv133r82rhqdj8rk1g096i-all-package-names.drv' is not valid
(use '--show-trace' to show detailed location information)
So I guess https://github.com/DavHau/nix-pypi-fetcher/blob/master/default.nix should be patched, but speaking of the mach-nix
tool, which is what I wanted to obtain, would it be a good idea adding it to Nixpkgs? For more casual Nix users?
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
CLI guideline - NixOS
nix command provides a single entry to a number of sub-commands that help developers and system administrators in the life-cycle of a software...
Read more >Use proper SDK and command-line tools on OS X 10.11 #9809
nixpkgs should be using the 10.11 SDK on 10.11, just like it uses the 10.9 SDK on 10.9, and 10.10 on 10.10. We...
Read more >Nix command - NixOS Wiki
This article is about the new nix command and all of its subcommands. The new nix command is intended to unify many different...
Read more >How to package a command-line tool in Nix? - Stack Overflow
1 Answer 1 ... and can be installed by calling nix-env -f ./default.nix -i from scriptdir . Share.
Read more >Nix integration - The Haskell Tool Stack
You should either run source ~/.nix-profile/etc/profile.d/nix.sh manually every time you open a terminal and need Nix or add this command to your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nix issue: https://github.com/NixOS/nix/issues/4210
This is also bad:
https://github.com/DavHau/mach-nix/blob/9aa62d0d03587a2fb0accae70e4c036df51b0e13/mach_nix/nix/deps-db-and-fetcher.nix#L8-L19
You have 3 different places where the pypi-fetcher commit is grabbed from. We are lucky we have flakes… Never mind that. Indeed the issue is not about
with expr;
. I managed to get this diff:And with
nix search --impure --update-input nixpkgs .
I got the same error as before… I completely misinterpreted the situation.I suspect that
builtins.readFile
acts differently uponallNamesJsonFile
if it’s created with nixUnstable compared to other Nix (What is your Nix version?)That json file shouldn’t be a json file - it could be evaluated all in pure Nix, as it seems from that python snippet -
buckets
could be a Nix variable, andall_names
is justbuiltins.catAttrs
.