2022-03-27 13:15:58 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-03-01 21:22:04 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "smug";
|
2022-09-22 03:42:31 +00:00
|
|
|
version = "0.3.3";
|
2022-03-01 21:22:04 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ivaaaan";
|
|
|
|
repo = "smug";
|
2022-03-27 13:15:58 +00:00
|
|
|
rev = "v${version}";
|
2022-09-22 03:42:31 +00:00
|
|
|
sha256 = "sha256-dQp9Ov8Si9DfziVtX3dXsJg+BNKYOoL9/WwdalQ5TVw=";
|
2022-03-01 21:22:04 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
|
2022-03-01 21:22:04 +00:00
|
|
|
|
2022-03-27 13:15:58 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ./man/man1/smug.1
|
2022-08-12 04:20:00 +00:00
|
|
|
installShellCompletion completion/smug.{bash,fish}
|
2022-03-27 13:15:58 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-01 21:22:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ivaaaan/smug";
|
|
|
|
description = "Smug - tmux session manager";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ juboba ];
|
|
|
|
};
|
|
|
|
}
|