-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
reveal-md: init at 5.2.0 #144918
reveal-md: init at 5.2.0 #144918
Conversation
0573e7e
to
9318a65
Compare
9318a65
to
23c2d2c
Compare
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.
Getting a build failure:
ERROR: Failed to download Chromium r674921! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Error: getaddrinfo ENOTFOUND storage.googleapis.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)
-- ASYNC --
at BrowserFetcher.<anonymous> (/nix/store/dqxfrsbgq0v7wscry5s4pl1cd6wdbkx1-reveal-md-5.2.0/lib/node_modules/reveal-md/n>
at Object.<anonymous> (/nix/store/dqxfrsbgq0v7wscry5s4pl1cd6wdbkx1-reveal-md-5.2.0/lib/node_modules/reveal-md/node_modu>
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'storage.googleapis.com'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
you will probably need to do something to:
reveal-md = super.reveal-md.override({
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
});
in pkgs/development/node-packages/default.nix
23c2d2c
to
e26ceb7
Compare
@jonringer interesting, thanks for pointing that out. I looked at other examples and went with an existing solution that the mermaid-js package uses as well. Let me know if it's not the right solution. Thanks again! |
e26ceb7
to
02e268f
Compare
02e268f
to
b6a7d5c
Compare
b6a7d5c
to
5775aa9
Compare
@@ -340,6 +340,19 @@ let | |||
''; | |||
}; | |||
|
|||
reveal-md = super.reveal-md.override ( | |||
lib.optionalAttrs (!stdenv.isDarwin) { |
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.
What happens if I try to build the package on Darwin?
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.
It builds successfully for me. I found this pattern for other node apps based on puppeteer in default.nix
I don't know why it doesn't work on linux, but on darwin we can't use the chromium package.
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.
See mermaid-cli
and the node conflicts begin :(
|
I'm already rebasing it for like the 10th time now to resolve conflicts, but running the generate script takes like 2 hours every time. :) |
We can also be sneaky and merge it without updating that file and let someone else do it. |
Signed-off-by: Mark Sagi-Kazar <[email protected]>
5775aa9
to
5bb83d0
Compare
@jonringer @SuperSandro2000 Rebase finally completed. |
other updates to node packages keep causing regressions.... |
unrelated regression fix: #146166 |
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.
LGTM
failures are broken on target branch
https://github.com/NixOS/nixpkgs/pull/144918
1 package failed to build:
teck-programmer
4 packages built:
gtop lumo pm2 reveal-md
Thanks a lot for your help to get this merged! |
yea. node package within nix is not the greatest maintainer experience |
Signed-off-by: Mark Sagi-Kazar [email protected]
Motivation for this change
Build reveal.js slides from markdown.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)