nixpkgs/pkgs/tools/misc/smug/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
809 B
Nix
Raw Normal View History

{ 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";
rev = "v${version}";
2022-09-22 03:42:31 +00:00
sha256 = "sha256-dQp9Ov8Si9DfziVtX3dXsJg+BNKYOoL9/WwdalQ5TVw=";
2022-03-01 21:22:04 +00:00
};
vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
2022-03-01 21:22:04 +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-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 ];
};
}