base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / tu / tuxmux / package.nix
blob49293f49557ade87b7260c3e6339a1a2a81372a1
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , libiconv
5 , pkg-config
6 , installShellFiles
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "tuxmux";
11   version = "0.2.3";
13   src = fetchFromGitHub {
14     owner = "edeneast";
15     repo = pname;
16     rev = "v${version}";
17     hash = "sha256-WcHsFKpYexBEg382837NqGgNMTKzVUG3XIER9aa1zK8=";
18   };
20   cargoHash = "sha256-ZftnJ6SYfPzwgsS44YgL9tbwL8Y+7PahI0EfFbKdlqA=";
22   buildInputs = [ libiconv ];
23   nativeBuildInputs = [ pkg-config installShellFiles ];
25   postInstall = ''
26     installShellCompletion $releaseDir/../completions/tux.{bash,fish}
27     installShellCompletion --zsh $releaseDir/../completions/_tux
29     installManPage $releaseDir/../man/*
30   '';
32   meta = with lib; {
33     description = "Tmux session manager";
34     homepage = "https://github.com/edeneast/tuxmux";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ edeneast ];
37     mainProgram = "tux";
38   };