Add auto-generated DBus bindings.

Code largely taken from git.sr.ht/~rycee/sd-switch
This commit is contained in:
R-VdP 2023-02-03 15:58:42 +00:00
parent 4592e2bacc
commit b291685a98
No known key found for this signature in database
7 changed files with 3954 additions and 1 deletions

View file

@ -74,6 +74,13 @@
};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
dbus
];
};
default = self.packages.${system}.service-manager;
};
@ -82,10 +89,16 @@
llvm.clang
openssl
pkg-config
rust.default
(rust.default.override {
extensions = [ "rust-src" ];
})
(treefmt-nix.lib.mkWrapper pkgs treefmt.config)
];
env = [
{
name = "PKG_CONFIG_PATH";
value = "${pkgs.lib.getOutput "dev" pkgs.dbus}/lib/pkgconfig";
}
{
name = "LIBCLANG_PATH";
value = "${llvm.libclang}/lib";