python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / smug / default.nix
blob11d5c17eb8b01df2b2ea87ff1924a686d5bf0956
1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
3 buildGoModule rec {
4   pname = "smug";
5   version = "0.3.3";
7   subPackages = [ "." ];
9   src = fetchFromGitHub {
10     owner = "ivaaaan";
11     repo = "smug";
12     rev = "v${version}";
13     sha256 = "sha256-dQp9Ov8Si9DfziVtX3dXsJg+BNKYOoL9/WwdalQ5TVw=";
14   };
16   vendorSha256 = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
18   nativeBuildInputs = [ installShellFiles ];
20   ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
22   postInstall = ''
23     installManPage ./man/man1/smug.1
24     installShellCompletion completion/smug.{bash,fish}
25   '';
27   meta = with lib; {
28     homepage = "https://github.com/ivaaaan/smug";
29     description = "Smug - tmux session manager";
30     license = licenses.mit;
31     maintainers = with maintainers; [ juboba ];
32   };