nixpkgs/pkgs/by-name/tu/tuxmux/package.nix

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

40 lines
917 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, rustPlatform
2023-11-01 05:21:42 +00:00
, libiconv
, pkg-config
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "tuxmux";
version = "0.2.3";
src = fetchFromGitHub {
owner = "edeneast";
repo = pname;
rev = "v${version}";
hash = "sha256-WcHsFKpYexBEg382837NqGgNMTKzVUG3XIER9aa1zK8=";
};
cargoHash = "sha256-ZftnJ6SYfPzwgsS44YgL9tbwL8Y+7PahI0EfFbKdlqA=";
2023-11-01 05:21:42 +00:00
buildInputs = [ libiconv ];
nativeBuildInputs = [ pkg-config installShellFiles ];
postInstall = ''
2023-12-31 20:35:20 +00:00
installShellCompletion $releaseDir/../completions/tux.{bash,fish}
installShellCompletion --zsh $releaseDir/../completions/_tux
installManPage $releaseDir/../man/*
'';
meta = with lib; {
description = "Tmux session manager";
homepage = "https://github.com/edeneast/tuxmux";
2023-11-27 14:43:27 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ edeneast ];
2023-12-31 20:35:20 +00:00
mainProgram = "tux";
};
}