From ec00575864be89fc9151ac722f286efec3477499 Mon Sep 17 00:00:00 2001 From: YisuiDenghua Date: Wed, 27 Jul 2022 11:27:51 +0800 Subject: [PATCH 1/2] hyfetch: init at 1.1.2 --- pkgs/tools/misc/hyfetch/default.nix | 42 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/tools/misc/hyfetch/default.nix diff --git a/pkgs/tools/misc/hyfetch/default.nix b/pkgs/tools/misc/hyfetch/default.nix new file mode 100644 index 000000000000..8a346855a7b4 --- /dev/null +++ b/pkgs/tools/misc/hyfetch/default.nix @@ -0,0 +1,42 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "HyFetch"; + version = "1.1.2"; + + src = fetchFromGitHub { + repo = "hyfetch"; + owner = "hykilpikonna"; + rev = "92623417f90f0cf006c0dd2adcf3f24f4308fe0c"; + sha256 = "sha256-26L2qt+RarRf3+L6+mMy/ZJNVBVirKs5oEclEsImtC0="; + }; + + propagatedBuildInputs = with python3Packages; [ + typing-extensions + setuptools + ]; + + preCheck = '' + rm -rf hyfetch/color_scale_numpy.py + ''; + + meta = with lib; { + description = "neofetch with pride flags <3"; + longDescription = '' + HyFetch is a command-line system information tool fork of neofetch. + HyFetch displays information about your system next to your OS logo + in ASCII representation. The ASCII representation is then colored in + the pattern of the pride flag of your choice. The main purpose of + HyFetch is to be used in screenshots to show other users what + operating system or distribution you are running, what theme or + icon set you are using, etc. + ''; + homepage = "https://github.com/hykilpikonna/HyFetch"; + license = licenses.mit; + mainProgram = "hyfetch"; + maintainers = [ + maintainers.yisuidenghua + ]; + + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index df7aaa7ff1fb..4d8c68b63456 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34803,6 +34803,8 @@ with pkgs; hplipWithPlugin = hplip.override { withPlugin = true; }; + hyfetch = callPackage ../tools/misc/hyfetch { }; + hyperfine = callPackage ../tools/misc/hyperfine { inherit (darwin.apple_sdk.frameworks) Security; }; From 80e96c8b69ad8cfd71d361a8f169412114ba501b Mon Sep 17 00:00:00 2001 From: YisuiDenghua Date: Wed, 27 Jul 2022 11:28:13 +0800 Subject: [PATCH 2/2] maintainers: add yisuidenghua --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 295938ddd56c..34908f2af554 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14799,4 +14799,10 @@ github = "nikstur"; githubId = 61635709; }; + yisuidenghua = { + email = "bileiner@gmail.com"; + name = "Milena Yisui"; + github = "yisuidenghua"; + githubId = 102890144; + }; }