mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
b67d0d71b2
Security patch to resolve CVEs: - [CVE-2024-45305](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45305) - [CVE-2024-45405](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45405) [v0.2.3 Release page](https://github.com/EdenEast/tuxmux/releases/tag/v0.2.3)
40 lines
917 B
Nix
40 lines
917 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, 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=";
|
|
|
|
buildInputs = [ libiconv ];
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
postInstall = ''
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ edeneast ];
|
|
mainProgram = "tux";
|
|
};
|
|
}
|