hostmux: init at 1.4.0

authored by Udo Sauer and committed by Anderson Torres 1050eee2 c78c03f6

+56
+54
pkgs/tools/misc/hostmux/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , openssh 6 + , tmux 7 + }: 8 + 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "hostmux"; 11 + version = "1.4.0"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "hukl"; 15 + repo = "hostmux"; 16 + rev = finalAttrs.version; 17 + hash = "sha256-odN7QFsU3MsWW8VabVjZH+8+AUFOUio8eF9ORv9iPEA="; 18 + }; 19 + 20 + nativeBuildInputs = [ 21 + installShellFiles 22 + ]; 23 + 24 + buildInputs = [ 25 + openssh 26 + tmux 27 + ]; 28 + 29 + postPatch = '' 30 + substituteInPlace hostmux \ 31 + --replace "SSH_CMD=ssh" "SSH_CMD=${openssh}/bin/ssh" \ 32 + --replace "tmux -2" "${tmux}/bin/tmux -2" \ 33 + --replace "tmux s" "${tmux}/bin/tmux s" 34 + ''; 35 + 36 + installPhase = '' 37 + runHook preInstall 38 + 39 + install -Dm755 hostmux $out/bin/hostmux 40 + installManPage man/hostmux.1 41 + installShellCompletion --zsh zsh-completion/_hostmux 42 + 43 + runHook postInstall 44 + ''; 45 + 46 + meta = { 47 + description = "Small wrapper script for tmux to easily connect to a series of hosts via ssh and open a split pane for each of the hosts"; 48 + homepage = "https://github.com/hukl/hostmux"; 49 + license = lib.licenses.mit; 50 + mainProgram = "hostmux"; 51 + maintainers = with lib.maintainers; [ fernsehmuell ]; 52 + platforms = lib.platforms.unix; 53 + }; 54 + })
+2
pkgs/top-level/all-packages.nix
··· 1790 1790 1791 1791 hexdiff = callPackage ../tools/misc/hexdiff { }; 1792 1792 1793 + hostmux = callPackage ../tools/misc/hostmux { }; 1794 + 1793 1795 httm = darwin.apple_sdk_11_0.callPackage ../tools/filesystems/httm { }; 1794 1796 1795 1797 inherit (callPackage ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;