feat: add sesh locally

This commit is contained in:
gwg313 2024-02-07 20:46:04 -05:00
parent a049042bb6
commit 6edcf42c52
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
2 changed files with 31 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# Custom packages, that can be defined similarly to ones from nixpkgs
# You can build them using 'nix build .#example'
pkgs: {
{pkgs, ...}: {
# example = pkgs.callPackage ./example { };
sesh = pkgs.callPackage ./sesh {};
}

29
pkgs/sesh/default.nix Normal file
View file

@ -0,0 +1,29 @@
{
lib,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule rec {
pname = "sesh";
version = "0.12.0";
src = fetchFromGitHub {
owner = "joshmedeski";
repo = "sesh";
rev = "v${version}";
hash = "sha256-m/EcWh4wfna9PB/NN+MCRUsz5Er0OZ70AAumlKdrm/s=";
};
vendorHash = "sha256-zt1/gE4bVj+3yr9n0kT2FMYMEmiooy3k1lQ77rN6sTk=";
ldflags = ["-s" "-w"];
meta = {
description = "Smart session manager for the terminal";
homepage = "https://github.com/joshmedeski/sesh";
changelog = "https://github.com/joshmedeski/sesh/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [gwg313];
mainProgram = "sesh";
};
}