kRHYME7 / Hyde-cli

A HyDE CLI, wrapper, tweaks , workarounds, and more!
https://github.com/prasanthrangan/hyprdots
GNU General Public License v3.0
56 stars 4 forks source link

feature: Nix package or nix support? #66

Open Cyberskeptic opened 1 month ago

Cyberskeptic commented 1 month ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Installation doesnt work on nix, gives a make error: install: target '/usr/lib/hyde-cli': No such file or directory make: *** [Makefile:61: install] Error 1

Describe the solution you'd like

Either a nix package or an install script that supports nix.

Describe alternatives you've considered

I might be able to maybe manually install and move all the files and hunt down all the packages.

Additional context

No response

kRHYME7 commented 1 month ago

install: target '/usr/lib/hyde-cli': No such file or directory

Hi this CLI cannot be used in nix as this is designed to be used in /usr/ /etc so only the typical linux package manager can be use for this. For nix we probably need to port or add some conditions for nix.

I think we can populate this inside ~/.local/ which is under the $USER scope?

I am not using nix, so can you provide me the file paths that are equivalent on nix?

[!NOTE] For now there is no point of having a nix support if the file structure of Hyde cannot support it. There are attempts to this https://github.com/prasanthrangan/hyprdots/discussions/166

Cyberskeptic commented 1 month ago

The ~/.local/ should work

kRHYME7 commented 1 month ago

my "guess" is /etc has the ~/.config counterpart right? Will use ~/.hyde-cli for /etc

share and bin will in in local.
so we can make

~/.local/lib/hyde-cli
~/.local/share/hyde-cli
~/.local/bin/hyde-cli

But again we need to make a good port of HyDE. Can we do it on home Manager?

Cyberskeptic commented 1 month ago

Not the most experienced nix user but I think this is a home manager type thing.

kRHYME7 commented 1 month ago

https://github.com/kRHYME7/Hyde-cli?tab=readme-ov-file#installation

you can install the CLI locally now, but this is just for future proofing as we do not have installer for another distro

Cyberskeptic commented 1 month ago

That didnt work so I might sit down and make a nix package at some point.

kRHYME7 commented 1 month ago

what do you mean by did not work any error or something? can nix OS use a MAKEFILE for installation?

Cyberskeptic commented 1 month ago

There was no error, the operation completes but the commands arent there basically no matter how I try using it, and yes I have make installed so it is using the make file, the output is normal.

kRHYME7 commented 1 month ago

Cool you needed to add ~/.local/bin to PATH or how nixOS handles this ?

image

image