-
Notifications
You must be signed in to change notification settings - Fork 44
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
nixos compat #575
nixos compat #575
Conversation
currently the tests are failing with
in nix we build packages in a sandbox so there are no fhs paths there |
@jirutka this will make your patch unnecessary https://git.alpinelinux.org/aports/tree/testing/ngs/cmakelists.patch |
Will rebase properly once I am on computer again |
Hello! Happy to see your contribution! I will be looking into it. The correct target branch is
Any alternative to look for? My main concern is: how do I know the build works? For all supported platforms, we have GitHub CI builds and tests in |
there's these, however i'd recommend not checking that something has some path, the only safeish thing you can use is
dependencies and such are passed via env vars to the build. here's a gist with the non-cross, static musl and a cross
sure i'll write ci |
Could you make the CI run on PRs? here's a patch for it diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 55a4c53..e948546 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,5 +1,7 @@
name: Build
-on: push
+on:
+ push
+ pull_request_target
jobs:
build-internal-apt: |
I prefer to test something even though it might break later.
Applied in
I still prefer to check for something (than not having the test) so in Anything else needed from my side? I appreciate the love that How do I know when the PR is ready for review? |
look for pandoc to see a big red error instead of seeing a small text that says "pandoc not found" if CMAKE_INSTALL_LIBDIR is set then add that to default NGS_PATH build-scripts: check if the CC variable is set and if it is not then use cpp. when cross-compiling, the compiler is prefixed with the target
and do not install example scripts by default
I'll undraft once ready |
not all platforms need 'dl' so use CMAKE_DL_LIBS which is set depending on if its needed use GNUInstallDirs to find install locations. it works on macos too
sorry kinda busy right now. This pr is ready to be merged as is though, i'll add ci later. |
Roughly the same here, not getting to it |
Tried to merge. Did not go well. The issues are:
1 and 3 here sound like would take me some time and I have the impression that you are more skilled at this so it would be great if you took a look Additional info: the linked build is based on dev branch (more precisely |
I'm sorry this is stuck for a while now. I'll try to take a second look. |
Why |
Some lines only differ in spacing. It would be easier to review the PR without this change. If spacing needs to be fixed (I don't know whether it's the case), it's better to do it in a separate PR. |
I'll rebase, I guess the me 2 years ago didn't know PR hygiene well yet. |
If it makes sense to you, @Artturin , you can also split this PR into two: one for optional pandoc build and one for the rest. |
This comment was marked as resolved.
This comment was marked as resolved.
Part 1 #669 |
Reviewed and commented |
Can we close this one in favor of the smaller ones? |
make building docs optional
look for pandoc to see a big red error instead of seeing a small text that says "pandoc not
found"
if CMAKE_INSTALL_LIBDIR is set then add that to default NGS_PATH
build-scripts: check if the CC variable is set and if it is not then use
cpp. when cross-compiling, the compiler is prefixed with the target
i'm packaging ngs for nixos/nixpkgs and encountered some issues