summary refs log tree commit diff
diff options
context:
space:
mode:
authoroxalica <oxalicc@pm.me>2020-05-24 23:46:22 +0800
committerGitHub <noreply@github.com>2020-05-24 10:46:22 -0500
commitb53605ac89038975b4911ca7999ce95a5f083c43 (patch)
treee56153771326ce60f5543a11426db1615cb052ff
parent919b0554e0bbe0a856f0d2f76d8eb27ea17ab622 (diff)
downloadnixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar.gz
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar.bz2
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar.lz
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar.xz
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.tar.zst
nixpkgs-b53605ac89038975b4911ca7999ce95a5f083c43.zip
systembus-notify: init at 1.0 (#88441)
* systembus-notify: init at 1.0

* systembus-notify: make it autostart
-rw-r--r--pkgs/applications/misc/systembus-notify/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/misc/systembus-notify/default.nix b/pkgs/applications/misc/systembus-notify/default.nix
new file mode 100644
index 00000000000..28c1be4219d
--- /dev/null
+++ b/pkgs/applications/misc/systembus-notify/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, systemd }:
+
+stdenv.mkDerivation rec {
+  pname = "systembus-notify";
+  version = "1.0";
+
+  src = fetchFromGitHub {
+    owner = "rfjakob";
+    repo = "systembus-notify";
+    rev = "v${version}";
+    sha256 = "11zq84qfmbyl51d3r6294l2bjhlgwa9bx7d263g9fkqrwsg0si0y";
+  };
+
+  buildInputs = [ systemd ];
+
+  installPhase = ''
+    runHook preInstall
+    install -Dm755 systembus-notify -t $out/bin
+    install -Dm644 systembus-notify.desktop -t $out/etc/xdg/autostart
+    runHook postInstall
+  '';
+
+  meta = with stdenv.lib; {
+    description = "System bus notification daemon";
+    homepage = "https://github.com/rfjakob/systembus-notify";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 553dc51b336..5ed66b37267 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6907,6 +6907,8 @@ in
     libxml2 = libxml2Python;
    };
 
+  systembus-notify = callPackage ../applications/misc/systembus-notify { };
+
   stricat = callPackage ../tools/security/stricat { };
 
   staruml = callPackage ../tools/misc/staruml { inherit (gnome2) GConf; libgcrypt = libgcrypt_1_5; };