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