Hyde-cli icon indicating copy to clipboard operation
Hyde-cli copied to clipboard

feature: Nix package or nix support?

Open Cyberskeptic opened this issue 1 year ago • 10 comments

Did you check the docs?

  • [X] I have read all the Hyde 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

Cyberskeptic avatar May 26 '24 05:05 Cyberskeptic

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?

  • /usr/share/hyde-cli
  • /etc/hyde-cli
  • /usr/bin

[!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

kRHYME7 avatar May 26 '24 07:05 kRHYME7

The ~/.local/ should work

Cyberskeptic avatar May 27 '24 00:05 Cyberskeptic

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?

kRHYME7 avatar May 27 '24 00:05 kRHYME7

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

Cyberskeptic avatar May 27 '24 02:05 Cyberskeptic

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

kRHYME7 avatar May 27 '24 04:05 kRHYME7

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

Cyberskeptic avatar May 28 '24 13:05 Cyberskeptic

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

kRHYME7 avatar May 28 '24 15:05 kRHYME7

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.

Cyberskeptic avatar May 29 '24 03:05 Cyberskeptic

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

image

image

kRHYME7 avatar May 29 '24 04:05 kRHYME7

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

This is true. Basically, nix works like all other distros. You don't need to use most nix features to install HyDE. In fact, you must avoid coupling it with nix features like home-manager if you want to be able to change themes on the fly without having to rebuild the system or home-manager.

sandeng1440 avatar Jan 28 '25 13:01 sandeng1440