-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
dbus: enable building with musl #71560
Conversation
@GrahamcOfBorg build dbus pkgsMusl.dbus |
This is related to the following three PRs:
|
When building dbus with musl, it must not take systemd as a buildInput, because systemd is not able to be build with musl.
b3e7779
to
7ada1d9
Compare
@@ -3,6 +3,7 @@ | |||
, fetchurl | |||
, pkgconfig | |||
, expat | |||
, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl | |||
, systemd |
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.
Should I set systemd
to systemd ? null
as it is done for libusb1?
https://github.com/NixOS/nixpkgs/pull/71563/files#diff-81a3f0c1548ebc7ea522eb8c443aaa01R5
In 7ada1d9 I changed this to take an |
This has worked fine for me in static-haskell-nix so far, and no changes for non-musl; merging. |
When building dbus with musl, it must not take systemd as a buildInput, because systemd is not able to be built with musl.
Motivation for this change
This is from nh2/static-haskell-nix#50. In that issue, I was trying to get
vte
built usingpkgsMusl
.vte
transitively depends ondbus
, which can't be built with asystemd
dependency, sincesystemd
can't be compiled with musl.In order to check this you can run the following command:
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
) they all seem to at least run somewhatnix path-info -S
before and after)Notify maintainers
cc @nh2 @domenkozar