1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 mono4,
7 autoreconfHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "dbus-sharp";
12 version = "0.8.1";
13
14 src = fetchFromGitHub {
15 owner = "mono";
16 repo = "dbus-sharp";
17
18 rev = "v${version}";
19 sha256 = "1g5lblrvkd0wnhfzp326by6n3a9mj2bj7a7646g0ziwgsxp5w6y7";
20 };
21
22 nativeBuildInputs = [
23 pkg-config
24 autoreconfHook
25 mono4 # gmcs
26 ];
27
28 # Use msbuild when https://github.com/NixOS/nixpkgs/pull/43680 is merged
29 # See: https://github.com/NixOS/nixpkgs/pull/46060
30 buildInputs = [ mono4 ];
31
32 dontStrip = true;
33
34 meta = with lib; {
35 description = "D-Bus for .NET";
36 platforms = platforms.linux;
37 license = licenses.mit;
38 };
39}