-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
nbb: init at 0.5.103 #173452
nbb: init at 0.5.103 #173452
Conversation
There is a disadvantage in the nix ecosystem that modules are called only after entering the external node_path. I only know how to use node2nix Why did you exclude node2nix from the nix node package official documentation? I wish I could go back to it now. https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/javascript.section.md Is nix a problem with nodejs over the past few months? There was and now the node2nix packages are installed well. However, it is not imported even in node (of course in nbb). If there is a solution to that, someone would appreciate it. Of course, if I can solve it, I'll change the code here. |
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.
conversations reviews.
hmm
https://github.com/NixOS/nixpkgs/search?q=NODE_PATH
I don't know how to load the installed nodePackages if I use something in particular. If you install nix as a user (including node2nix), everything is gathered under ~/.nix-profile/lib/node_modules.
Anyway, I’ll use NODE_PATH and overrideAttr after uploaded this pull request.
@SuperSandro2000 |
Also please squash the package related commits into on and follow the contributing guide when naming them. |
WDYM? Does the program require some node packages to run on itself or do you want to load some node_modules for your workload? |
It's nothing. I was using node2nix with c dependencies like zeromq (node-gyp?) and didn't know much, so I was just frustrated. Its fixed now, but i dont know why. And of course, it seems to have nothing to do with nbb. For now, I just want to upload other things as soon as this nbb goes up. |
hmmm; its not too easy to me. I just followed this and I'm sorry, but I've never done the next step squash commit, so I don't know what to do. I am afraid of making a mistake. If there is a blog post, document, or video that can be a reference for the git command, you might be able to see it and solve it right away. In the current situation, I have to learn merge, rebase, and squash completely, but it seems to be progressing I'm sorry;; If I can get past this one, I want to upload some other packages too. It's a bit frustrating. My ignorance makes me angry too. |
Maybe https://www.youtube.com/watch?v=OR8Q-4PLalc can help you? |
cause mistake I did a fixed merge... I'll try again. |
@SuperSandro2000 Looks like you've even done a squash now. thank you for telling me. y,.g; Thanks. |
@PlumpMath as far as I can see this PR hasn't been properly squashed, to match the desired commit convention you'll need something like this: here's a working branch: https://github.com/NixOS/nixpkgs/compare/master...kubukoz:nbb?expand=1 - we can try to force push to your branch to get these commits, or I can reopen the PR for you. |
@kubukoz I want to force push my branch because I want to put some extra gift-like code next time. I'm sorry I don't know too much about collaboration. Because I also want to start contributing, if not as much as the long-standing contributions of others I have received. What should I do next? How to push upstream(nixpkgs/master) I want to know the standard method after squash. Etc I'd appreciate it if you could let me know. Sorry to bother us. Thanks. |
@PlumpMath the contributing guidelines for this repo are in https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md, generally someone else who has merge rights will merge your PR. In this instance I can do that but the branch currently doesn't follow the guidelines. |
Pushed my commits here, just make sure to squash properly in the future - I recommend playing around with rebasing in a new repository that you won't be afraid to mess up (maybe even another clone of nixpkgs) so that it's easier next time ;) |
add classpath
addpath fetchMavenArtifact
fix whitespace
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.
fix whitespace deps.edn file.
Except for NODE_PATH, my nbb settings are the same. If that doesn't work, I don't know how to solve it. |
add GIT_SSL_CAINFO SSL_CERT_FILE
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.
add GIT_SSL_CAINFO SSL_CERT_FILE
change jdk to graalvm11-ce
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.
change jdk to graalvm11-ce & export JAVA_HOME
change DEPS_CLJ_TOOLS_DIR
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.
change DEPS_CLJ_TOOLS_DIR
|
||
{ | ||
:deps { | ||
com.github.seancorfield/honeysql {:git/tag "v2.2.891" :git/sha "796c734"} |
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.
If clojure CLI is invoked (I supposed the bb release
command is invoking it), clojure will make a network request to resolve the tag. To avoid that, remove :git/tag
and use the full sha
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.
This is a bug and tracked upstream at https://clojure.atlassian.net/browse/TDEPS-223.
In case that makes you feel any better about doing the workaround :)
@PlumpMath Thanks for your effort to add nbb to nixpkgs. Since nbb is distributed as an npm package, I'd go with a pragmatic approach and just add the npm package to the list node packages in nix. If you are not familiar with it, here are the docs: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/javascript.section.md#adding-and-updating-javascript-packages-in-nixpkgs I tried that, and I was able to run the nbb repl. The main issue I see with building it from source is that Clojure is not well supported in nixpkgs. There are some efforts to improve the situation, like clj2nix, clojure-nix-locker or clj-nix (I'm the author of the last one), but none of those are on nixpkgs yet. I'd go with the node package for now, and if in the future one of those gets into nixpkgs, we could consider trying to build nbb from the source. |
A few years ago, when I was learning nixos for first time. Before going to bed this morning, I took setup of clj-nix hello, and put everything in my config nix (flake nix-darwin & nixos & wsl nixos). It's very fast and good (thanks for making clj-nix, it's fantastic @jlesquembre ). So I'm talking about borkdude did mention you. anyway like think I'm not good at English, so what you mentioned above is the current clojure error, right? @whentze (sandbox false right! Thanks) good day. Thanks all. |
No problem, my description wasn't very clear. Here's my view: Your current error ("Build Error building classpath. Failed to read artifact descriptor for org.clojure:clojure:jar") is caused by the nix sandbox. What happens there is the clojure dependency management library There are ways to stop The issue I linked to (https://clojure.atlassian.net/browse/TDEPS-223) is not directly related to this, but it is the cause of another error that you might run into later due to the way you have written your |
clearly i got it. Thanks. |
Description of changes
Add the nbb for clojurescript (babashka) interpreting in node.js
https://github.com/babashka/nbb
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes