From f5baf9242c0e101e403e836b6eefa9f026fb0a2d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 28 Sep 2023 23:41:22 +0800 Subject: [PATCH] gh-screensaver: init at 2.0.1 --- pkgs/by-name/gh/gh-screensaver/package.nix | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/gh/gh-screensaver/package.nix diff --git a/pkgs/by-name/gh/gh-screensaver/package.nix b/pkgs/by-name/gh/gh-screensaver/package.nix new file mode 100644 index 000000000000..b5466c791333 --- /dev/null +++ b/pkgs/by-name/gh/gh-screensaver/package.nix @@ -0,0 +1,28 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "gh-screensaver"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "vilmibm"; + repo = "gh-screensaver"; + rev = "v${version}"; + hash = "sha256-MqwaqXGP4E+46vpgftZ9bttmMyENuojBnS6bWacmYLE="; + }; + + vendorHash = "sha256-o9B6Q07GP/CFekG3av01boZA7FdZg4x8CsLC3lwhn2A="; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "gh extension with animated terminal screensavers"; + homepage = "https://github.com/vilmibm/gh-screensaver"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ foo-dogsquared ]; + mainProgram = "gh-screensaver"; + }; +}