about summary refs log tree commit diff
path: root/pkgs/tools/misc/upower-notify
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2022-03-08 15:23:28 +0100
committerFelix Buehler <account@buehler.rocks>2022-03-14 19:32:49 +0100
commit96aad972429b88065aee364c78425677571fa2ac (patch)
tree83b3c7914d562234db8b22911c618d9f7b5ca8a4 /pkgs/tools/misc/upower-notify
parentc3d260d8d8f1b5d603f473aac87641beb3948b96 (diff)
go-upower-notify: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/tools/misc/upower-notify')
-rw-r--r--pkgs/tools/misc/upower-notify/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/tools/misc/upower-notify/default.nix b/pkgs/tools/misc/upower-notify/default.nix
index 79460f3a5b79c..c46ad10a40af0 100644
--- a/pkgs/tools/misc/upower-notify/default.nix
+++ b/pkgs/tools/misc/upower-notify/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoPackage, fetchgit }:
+{ lib, buildGoPackage, fetchFromGitHub }:
 
 # To use upower-notify, the maintainer suggests adding something like this to your configuration.nix:
 #
@@ -8,16 +8,22 @@
 # '';
 buildGoPackage rec {
   pname = "upower-notify";
-  version = "20160310-${lib.strings.substring 0 7 rev}";
-  rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
+  version = "unstable-2016-03-10";
 
   goPackagePath = "github.com/omeid/upower-notify";
 
-  src = fetchgit {
-    inherit rev;
-    url = "https://github.com/omeid/upower-notify";
+  src = fetchFromGitHub {
+    owner = "omeid";
+    repo = "upower-notify";
+    rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
     sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
   };
 
   goDeps = ./deps.nix;
+
+  meta = with lib; {
+    description = "simple tool to give you Desktop Notifications about your battery";
+    homepage = "https://github.com/omeid/upower-notify";
+    maintainers = with maintainers; [ kamilchm ];
+  };
 }