about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/notify-sharp
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/notify-sharp')
-rw-r--r--nixpkgs/pkgs/development/libraries/notify-sharp/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/notify-sharp/default.nix b/nixpkgs/pkgs/development/libraries/notify-sharp/default.nix
new file mode 100644
index 000000000000..1cd69074911b
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/notify-sharp/default.nix
@@ -0,0 +1,37 @@
+{ lib, stdenv, fetchFromGitLab, pkg-config, autoreconfHook
+, mono, gtk-sharp-3_0, dbus-sharp-1_0, dbus-sharp-glib-1_0 }:
+
+stdenv.mkDerivation rec {
+  pname = "notify-sharp";
+  version = "3.0.3";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "Archive";
+    repo = "notify-sharp";
+
+    rev = version;
+    sha256 = "1vm7mnmxdwrgy4mr07lfva8sa6a32f2ah5x7w8yzcmahaks3sj5m";
+  };
+
+  nativeBuildInputs = [
+    pkg-config autoreconfHook
+  ];
+
+  buildInputs = [
+    mono gtk-sharp-3_0
+    dbus-sharp-1_0 dbus-sharp-glib-1_0
+  ];
+
+  dontStrip = true;
+
+  postPatch = ''
+    sed -i 's#^[ \t]*DOCDIR=.*$#DOCDIR=$out/lib/monodoc#' ./configure.ac
+  '';
+
+  meta = with lib; {
+    description = "D-Bus for .NET";
+    platforms = platforms.linux;
+    license = licenses.mit;
+  };
+}