go-upower-notify: switch to fetchFromGitHub
This commit is contained in:
parent
c3d260d8d8
commit
96aad97242
|
@ -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:
|
# To use upower-notify, the maintainer suggests adding something like this to your configuration.nix:
|
||||||
#
|
#
|
||||||
|
@ -8,16 +8,22 @@
|
||||||
# '';
|
# '';
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "upower-notify";
|
pname = "upower-notify";
|
||||||
version = "20160310-${lib.strings.substring 0 7 rev}";
|
version = "unstable-2016-03-10";
|
||||||
rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
|
|
||||||
|
|
||||||
goPackagePath = "github.com/omeid/upower-notify";
|
goPackagePath = "github.com/omeid/upower-notify";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
owner = "omeid";
|
||||||
url = "https://github.com/omeid/upower-notify";
|
repo = "upower-notify";
|
||||||
|
rev = "14c581e683a7e90ec9fa6d409413c16599a5323c";
|
||||||
sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
|
sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
|
||||||
};
|
};
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue