about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/dbus-sharp
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/dbus-sharp')
-rw-r--r--nixpkgs/pkgs/development/libraries/dbus-sharp/dbus-sharp-1.0.nix25
-rw-r--r--nixpkgs/pkgs/development/libraries/dbus-sharp/default.nix28
2 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/dbus-sharp/dbus-sharp-1.0.nix b/nixpkgs/pkgs/development/libraries/dbus-sharp/dbus-sharp-1.0.nix
new file mode 100644
index 000000000000..eb1b20e29eb1
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/dbus-sharp/dbus-sharp-1.0.nix
@@ -0,0 +1,25 @@
+{lib, stdenv, fetchFromGitHub, pkg-config, mono, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  pname = "dbus-sharp";
+  version = "0.7";
+
+  src = fetchFromGitHub {
+    owner = "mono";
+    repo = "dbus-sharp";
+
+    rev = "v${version}";
+    sha256 = "13qlqx9wqahfpzzl59157cjxprqcx2bd40w5gb2bs3vdx058p562";
+  };
+
+  nativeBuildInputs = [ pkg-config autoreconfHook ];
+  buildInputs = [ mono ];
+
+  dontStrip = true;
+
+  meta = with lib; {
+    description = "D-Bus for .NET";
+    platforms = platforms.linux;
+    license = licenses.mit;
+  };
+}
diff --git a/nixpkgs/pkgs/development/libraries/dbus-sharp/default.nix b/nixpkgs/pkgs/development/libraries/dbus-sharp/default.nix
new file mode 100644
index 000000000000..c64d7bbef992
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/dbus-sharp/default.nix
@@ -0,0 +1,28 @@
+{lib, stdenv, fetchFromGitHub, pkg-config, mono4, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  pname = "dbus-sharp";
+  version = "0.8.1";
+
+  src = fetchFromGitHub {
+    owner = "mono";
+    repo = "dbus-sharp";
+
+    rev = "v${version}";
+    sha256 = "1g5lblrvkd0wnhfzp326by6n3a9mj2bj7a7646g0ziwgsxp5w6y7";
+  };
+
+  nativeBuildInputs = [ pkg-config autoreconfHook ];
+
+  # Use msbuild when https://github.com/NixOS/nixpkgs/pull/43680 is merged
+  # See: https://github.com/NixOS/nixpkgs/pull/46060
+  buildInputs = [ mono4 ];
+
+  dontStrip = true;
+
+  meta = with lib; {
+    description = "D-Bus for .NET";
+    platforms = platforms.linux;
+    license = licenses.mit;
+  };
+}