f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
39 lines
917 B
Nix
39 lines
917 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, libiconv
|
|
, pkg-config
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tuxmux";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edeneast";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-HujdIT55NmXpHDa0a4EmB30va8bNdZ/MHu7+SwF9Nvc=";
|
|
};
|
|
|
|
cargoHash = "sha256-ceXeYa8MGGc0I8Q/r4GVsR71St/hlNc75a20BN0Haas=";
|
|
|
|
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";
|
|
};
|
|
}
|