From d765026f99e3e97fb00a77f9d8db84f3774377f6 Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Fri, 3 Jun 2016 14:38:37 +0200 Subject: go-upower-notify: extracted from goPackages --- pkgs/development/go-modules/libs.json | 9 +++++++++ pkgs/tools/misc/upower-notify/default.nix | 26 ++++++++++++++++++++++++++ pkgs/tools/misc/upower-notify/deps.json | 8 ++++++++ pkgs/top-level/all-packages.nix | 3 ++- 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/upower-notify/default.nix create mode 100644 pkgs/tools/misc/upower-notify/deps.json diff --git a/pkgs/development/go-modules/libs.json b/pkgs/development/go-modules/libs.json index a172cc524842..1fb038e71938 100644 --- a/pkgs/development/go-modules/libs.json +++ b/pkgs/development/go-modules/libs.json @@ -142,5 +142,14 @@ "rev": "9c7d514efdb561775030eaf8f1a9ae6bddb3a2ca", "sha256": "024sc7g55v4s54irssm5wsn74sr2k2ynsm6z16w47q66cxhgvby1" } + }, + { + "goPackagePath": "github.com/godbus/dbus", + "fetch": { + "type": "git", + "url": "https://github.com/godbus/dbus", + "rev": "32c6cc29c14570de4cf6d7e7737d68fb2d01ad15", + "sha256": "0v401f761l88yapiaw23pxvxviqrwl2r2vfd6lq02044i7x4i5r3" + } } ] \ No newline at end of file diff --git a/pkgs/tools/misc/upower-notify/default.nix b/pkgs/tools/misc/upower-notify/default.nix new file mode 100644 index 000000000000..fef1707d5052 --- /dev/null +++ b/pkgs/tools/misc/upower-notify/default.nix @@ -0,0 +1,26 @@ +# This file was generated by go2nix. +{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +with goPackages; + +# To use upower-notify, the maintainer suggests adding something like this to your configuration.nix: +# +# service.xserver.displayManager.sessionCommands = '' +# ${pkgs.dunst}/bin/dunst -shrink -geometry 0x0-50-50 -key space & # ...if don't already have a dbus notification display app +# (sleep 3; exec ${pkgs.yeshup}/bin/yeshup ${pkgs.go-upower-notify}/bin/upower-notify) & +# ''; +buildGoPackage rec { + name = "upower-notify-${version}"; + version = "20160310-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "14c581e683a7e90ec9fa6d409413c16599a5323c"; + + goPackagePath = "github.com/omeid/upower-notify"; + + src = fetchgit { + inherit rev; + url = "https://github.com/omeid/upower-notify"; + sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw"; + }; + + goDeps = ./deps.json; +} diff --git a/pkgs/tools/misc/upower-notify/deps.json b/pkgs/tools/misc/upower-notify/deps.json new file mode 100644 index 000000000000..3a254084ae36 --- /dev/null +++ b/pkgs/tools/misc/upower-notify/deps.json @@ -0,0 +1,8 @@ +[ + { + "include": "../../../go-modules/libs.json", + "packages": [ + "github.com/godbus/dbus" + ] + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 226abaee854b..b059eee3dbba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1764,7 +1764,8 @@ in go-sct = (callPackage ../tools/X11/go-sct { }).bin; - go-upower-notify = goPackages.upower-notify.bin // { outputs = [ "bin" ]; }; + # rename to upower-notify? + go-upower-notify = (callPackage ../tools/misc/upower-notify { }).bin; googleAuthenticator = callPackage ../os-specific/linux/google-authenticator { }; -- cgit 1.4.1