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

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

35 lines
835 B
Nix
Raw Normal View History

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