summaryrefslogtreecommitdiff
path: root/pkgs/neowofetch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/neowofetch')
-rw-r--r--pkgs/neowofetch/package.nix55
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";
+ };
+})