depot/third_party/nixpkgs/pkgs/tools/misc/smug/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

34 lines
835 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "smug";
version = "0.3.5";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "ivaaaan";
repo = "smug";
rev = "v${version}";
sha256 = "sha256-5n4EmkcHv6pw1gd9VUtJRR3QdRJsu5DYYsozJ25uggs=";
};
vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
postInstall = ''
installManPage ./man/man1/smug.1
installShellCompletion completion/smug.{bash,fish}
'';
meta = with lib; {
homepage = "https://github.com/ivaaaan/smug";
description = "Smug - tmux session manager";
license = licenses.mit;
maintainers = with maintainers; [ juboba ];
mainProgram = "smug";
};
}