From f9516c05c5b222d98ae90738358f4271d4e88585 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 24 Oct 2024 18:32:13 -0400 Subject: hyfetch: init at 1.99.0-unstable-2024-10-23 (#118) * hyfetch: init at 1.99.0-unstable-2024-10-23 * neowofetch: only enable x11 support by default on linux * ci: don't check all systems some packages are broken by deps on lower tier platforms. ci doesn't need to fail over them --- pkgs/neowofetch/package.nix | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/neowofetch/package.nix (limited to 'pkgs/neowofetch/package.nix') diff --git a/pkgs/neowofetch/package.nix b/pkgs/neowofetch/package.nix new file mode 100644 index 0000000..8efa167 --- /dev/null +++ b/pkgs/neowofetch/package.nix @@ -0,0 +1,55 @@ +{ + lib, + bash, + hyfetch, + installShellFiles, + makeBinaryWrapper, + pciutils, + stdenvNoCC, + ueberzug, + withX11Support ? stdenvNoCC.hostPlatform.isLinux, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "neowofetch"; + + inherit (hyfetch) version src; + + strictDeps = true; + + nativeBuildInputs = [ + installShellFiles + makeBinaryWrapper + ]; + + buildInputs = [ bash ]; + + dontConfigure = true; + dontBuild = true; + + postInstall = '' + mv {neo,neowo}fetch + installBin neowofetch + + mv docs/{neo,neowo}fetch.1 + installManPage docs/neowofetch.1 + ''; + + postFixup = '' + wrapProgram "$out"/bin/neowofetch \ + --prefix PATH : ${lib.makeBinPath finalAttrs.passthru.binPath} + ''; + + passthru = { + binPath = [ pciutils ] ++ lib.optional withX11Support ueberzug; + }; + + meta = { + description = "Fast, highly customizable system info script (Maintained fork)"; + homepage = "https://github.com/hykilpikonna/hyfetch"; + changelog = "https://github.com/hykilpikonna/hyfetch/releases/tag/${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ getchoo ]; + mainProgram = "neowofetch"; + }; +}) -- cgit v1.2.3