joshmedeski / sesh

Smart session manager for the terminal
MIT License
410 stars 16 forks source link

[Package request] Nix #79

Closed delabere closed 3 months ago

delabere commented 4 months ago

If you could add a flake.nix to this project that would be awesome!

joshmedeski commented 3 months ago

There's a PR up right now, waiting for it to get merged: https://github.com/NixOS/nixpkgs/pull/286594

joshmedeski commented 3 months ago

The nxpkgs PR (see last comment) has been merged! Please let us know it it isn't working as expected.

delabere commented 2 months ago

It's working great! Thanks for the awesome plugin and for making it nix compatible!

meicale commented 2 months ago

It is kind of wired. I can install sesh using nix-shell but my nixpkgs from nix/homemanager can not find the sesh value. Error msgs:

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:9:12:
            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/4fgs7yzsy2dqnjw8j42qlp9i1vgarzy0-sourc
e/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/4fgs7yzsy2dqnjw8j42qlp9i1vgarzy0-source/pkgs/build-support/trivial-bui
lders/default.nix:87:15:
           86|       enableParallelBuilding = true;
           87|       inherit buildCommand name;
             |               ^
           88|       passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'sesh'
       at /nix/store/p3rd8nvgzpzdmfg13h4h2lvaqw2pmvr0-source/nix/home-manager/home.nix:74:5:
           73|     # session mangaer baseon tmux
           74|     sesh
             |     ^

Thank you!

adgai19 commented 1 month ago

As of today, sesh is in nixos-unstable. You might be using home manager which is on nixos-23.11. If that is the case, you will have to either move to unstable or install this one package from unstable.

meicale commented 1 month ago

Thank you for your reply! I use nix/homemanager in wsl/ubuntu24.04. My nix pkgs is unstable.

meicale commented 1 month ago

Thank you for your reply! I use nix/homemanager in wsl/ubuntu24.04. My nix pkgs is unstable.

The most wired thing is that I can install it successfully using nix-shell -p