2022-03-30 09:31:56 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "smug";
|
|
|
|
version = "0.2.7";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ivaaaan";
|
|
|
|
repo = "smug";
|
2022-03-30 09:31:56 +00:00
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "178125835dhnaq9k42yv4pfxpyhgb5179wrxkimb59fy0nk8jzx8";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "1rba5rpvlr8dyhj145b5i57pm4skfpj3vm7vydkn79k6ak6x985x";
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ./man/man1/smug.1
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|