mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
41 lines
923 B
Nix
41 lines
923 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, libiconv
|
|
, pkg-config
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tuxmux";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edeneast";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-BZ1Vo1NIpzUBGyvd/UbxLaFbrLzoaP8kn/8GoAYBmlo=";
|
|
};
|
|
|
|
cargoHash = "sha256-HIYQPHLMhQtpCIkl5EzjJGHXzBtw7mY85l5bqapw3rg=";
|
|
|
|
buildInputs = [ libiconv ];
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion $releaseDir/../completions/tm.{bash,fish}
|
|
installShellCompletion --zsh $releaseDir/../completions/_tm
|
|
|
|
installManPage $releaseDir/../man/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tmux session manager";
|
|
homepage = "https://github.com/edeneast/tuxmux";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ edeneast ];
|
|
mainProgram = "tm";
|
|
};
|
|
}
|