2022-03-30 09:31:56 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "smug";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.3.3";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ivaaaan";
|
|
|
|
repo = "smug";
|
2022-03-30 09:31:56 +00:00
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-dQp9Ov8Si9DfziVtX3dXsJg+BNKYOoL9/WwdalQ5TVw=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ./man/man1/smug.1
|
2022-08-21 13:32:41 +00:00
|
|
|
installShellCompletion completion/smug.{bash,fish}
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ivaaaan/smug";
|
|
|
|
description = "Smug - tmux session manager";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ juboba ];
|
|
|
|
};
|
|
|
|
}
|