2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:43:52 +00:00
nixpkgs/pkgs/tools/misc/smug/default.nix
Julio Borja Barra db034e9b5e
smug: add man page ()
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-27 15:15:58 +02:00

33 lines
758 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "smug";
version = "0.2.7";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "ivaaaan";
repo = "smug";
rev = "v${version}";
sha256 = "178125835dhnaq9k42yv4pfxpyhgb5179wrxkimb59fy0nk8jzx8";
};
vendorSha256 = "1rba5rpvlr8dyhj145b5i57pm4skfpj3vm7vydkn79k6ak6x985x";
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
postInstall = ''
installManPage ./man/man1/smug.1
'';
meta = with lib; {
homepage = "https://github.com/ivaaaan/smug";
description = "Smug - tmux session manager";
license = licenses.mit;
maintainers = with maintainers; [ juboba ];
};
}