diff options
| author | seth <[email protected]> | 2024-10-24 18:32:13 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-24 22:32:13 +0000 |
| commit | f9516c05c5b222d98ae90738358f4271d4e88585 (patch) | |
| tree | 1bb8d58ec62ab97f67d09d846f84a73236a0b090 /pkgs/neowofetch/package.nix | |
| parent | 95a40f4536ece4ad4512ad19ff9c1c8ac11ffe28 (diff) | |
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
Diffstat (limited to 'pkgs/neowofetch/package.nix')
| -rw-r--r-- | pkgs/neowofetch/package.nix | 55 |
1 files changed, 55 insertions, 0 deletions
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"; + }; +}) |
