Conversation
sikmir
left a comment
There was a problem hiding this comment.
Result of nixpkgs-review pr 304752 run on x86_64-darwin 1
1 package failed to build:
- lnav
lnav> readline_curses.cc:839:9: error: use of undeclared identifier 'ptsname_r'; did you mean 'ttyname_r'?
lnav> if (ptsname_r(
lnav> ^~~~~~~~~
lnav> ttyname_r
|
Can you add a dependency on rust/cargo. The 0.12.1 version adds support for PRQL, which is implemented in rust. It seems like the darwin version is pretty recent, so I don't know why Is it possible to run the |
|
It looks like a dependency on |
|
Another issue is that a dependency on tzdata needs to be added and a patch done to make the date library in lnav look in the right place. @soenkeliebau has done that part here: |
|
Full disclosure: that patch should be taken with a fair amount of salt! Also, embedding the patch in the .nix file is kinda ugly, but can't be helped because otherwise It would be nicer to come up with a generic patch that checks the TZDIR (which is set by tzdata automatically) env var and uses that instead of hardcoding a default. samuel-emrys/date@9755167 has some code to that effect I believe. But my C skills are quite frankly not up to fully understanding what is happening and adapting it. |
You say that, but it's not too different from what was done in the official nix package for the date library: I ended up doing this: Which is what was done here: https://github.com/HowardHinnant/date/pull/579/files |
|
Done in #323321. |
Description of changes
Changelog: https://github.com/tstack/lnav/releases/tag/v0.12.1
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.