Merge pull request #328863 from katexochen/upower/up

This commit is contained in:
Sandro 2024-07-31 14:01:42 +02:00 committed by GitHub
commit 91299a7cdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 15 deletions

View File

@ -1,4 +1,8 @@
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
{
lib,
buildGoModule,
fetchFromGitHub,
}:
# To use upower-notify, the maintainer suggests adding something like this to your configuration.nix:
#
@ -8,23 +12,15 @@
# '';
buildGoModule {
pname = "upower-notify";
version = "0-unstable-2019-01-06";
version = "0-unstable-2024-07-20";
src = fetchFromGitHub {
owner = "omeid";
repo = "upower-notify";
rev = "7013b0d4d2687e03554b1287e566dc8979896ea5";
sha256 = "sha256-8kGMeWIyM6ML1ffQ6L+SNzuBb7e5Y5I5QKMkyEjSVEA=";
rev = "c05ffbba9b8d475573be0908d75ac7c64d74be2d";
sha256 = "sha256-y+Cy3jkIfWiqF2HFopafdNSyGVA2ws4250Lg02rVxmo=";
};
patches = [
# Migrate to Go module
(fetchpatch {
url = "https://github.com/omeid/upower-notify/commit/dff8ad7e33e5b0cf148e73c6ea0c358da72006ed.patch";
hash = "sha256-zPSryo6f+6QGgjOkC3W1fPIbZ3FD6S/rAuBJXHWqjZg=";
})
];
vendorHash = "sha256-58zK6t3rb+19ilaQaNgsMVFQBYKPIV40ww8klrGbpnw=";
proxyVendor = true;

View File

@ -581,6 +581,7 @@ mapAliases ({
google-chrome-dev = throw "'google-chrome-dev' has been removed due to the lack of maintenance in nixpkgs. Consider using 'google-chrome' instead."; # Added 2023-10-18
google-gflags = throw "'google-gflags' has been renamed to/replaced by 'gflags'"; # Converted to throw 2023-09-10
go-thumbnailer = thud; # Added 2023-09-21
go-upower-notify = upower-notify; # Added 2024-07-21
gocode = throw "'gocode' has been removed as the upstream project was archived. 'gopls' is suggested as replacement"; # Added 2023-12-26
govendor = throw "'govendor' has been removed as it is no longer maintained upstream, please use Go modules instead"; # Added 2023-12-26
gometer = throw "gometer has been removed from nixpkgs because goLance stopped offering Linux support"; # Added 2023-02-10

View File

@ -8356,9 +8356,6 @@ with pkgs;
go-sct = callPackage ../tools/X11/go-sct { };
# rename to upower-notify?
go-upower-notify = callPackage ../tools/misc/upower-notify { };
goattracker = callPackage ../applications/audio/goattracker { };
goattracker-stereo = callPackage ../applications/audio/goattracker {