Merge pull request #254328 from wigust/tmuxifier

tmuxifier: init at 0.13.0

authored by

Mario Rodas and committed by
GitHub
5c22cac4 7ba4270b

+66
+10
maintainers/maintainer-list.nix
··· 18489 18489 githubId = 7121530; 18490 18490 name = "Wolf Honoré"; 18491 18491 }; 18492 + wigust = { 18493 + name = "Oleg Pykhalov"; 18494 + email = "go.wigust@gmail.com"; 18495 + github = "wigust"; 18496 + githubId = 7709598; 18497 + keys = [{ 18498 + # primary: "C955 CC5D C048 7FB1 7966 40A9 199A F6A3 67E9 4ABB" 18499 + fingerprint = "7238 7123 8EAC EB63 4548 5857 167F 8EA5 001A FA9C"; 18500 + }]; 18501 + }; 18492 18502 wildsebastian = { 18493 18503 name = "Sebastian Wild"; 18494 18504 email = "sebastian@wild-siena.com";
+56
pkgs/by-name/tm/tmuxifier/package.nix
··· 1 + { lib, stdenv, fetchFromGitHub, installShellFiles }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "tmuxifier"; 5 + version = "0.13.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "jimeh"; 9 + repo = "tmuxifier"; 10 + rev = "v${version}"; 11 + hash = "sha256-7TvJnvtZEo5h45PcSy3tJN09UblswV0mQbTaKjgLyqw="; 12 + }; 13 + 14 + nativeBuildInputs = [ installShellFiles ]; 15 + 16 + dontBuild = true; 17 + 18 + installPhase = '' 19 + runHook preInstall 20 + 21 + sed -i "s@set -e@TMUXIFIER=$out\nTMUXIFIER_LAYOUT_PATH=\"\''${TMUXIFIER_LAYOUT_PATH:-\$HOME/.tmux-layouts}\"\nset -e@" \ 22 + bin/tmuxifier 23 + sed -i "s@\$TMUXIFIER/lib/@\$TMUXIFIER/lib/tmuxifier/@g" \ 24 + bin/tmuxifier libexec/* lib/* 25 + sed -i "s@\$TMUXIFIER/templates/@\$TMUXIFIER/share/tmuxifier/templates/@g; s@\$TMUXIFIER/init.@\$TMUXIFIER/share/tmuxifier/init/init.@g" \ 26 + libexec/* 27 + sed -i "s@\$TMUXIFIER/completion/tmuxifier.bash@\$TMUXIFIER/share/bash-completion/completions/tmuxifier.bash@g; s@\$TMUXIFIER/completion/tmuxifier.zsh@\$TMUXIFIER/share/zsh/site-functions/_tmuxifier@g" \ 28 + init.sh 29 + sed -i "s@\$TMUXIFIER/completion/tmuxifier.tcsh@\$TMUXIFIER/share/tmuxifier/completion/tmuxifier.tcsh@g" \ 30 + init.tcsh 31 + sed -i "s@\$TMUXIFIER/completion/tmuxifier.fish@\$TMUXIFIER/share/fish/vendor_completions.d/tmuxifier.fish@g" \ 32 + init.fish 33 + 34 + install -t $out/bin -Dm555 bin/tmuxifier 35 + install -t $out/share/tmuxifier/init -Dm444 init.fish init.sh init.tcsh 36 + install -t $out/share/tmuxifier/templates -Dm444 templates/* 37 + install -t $out/lib/tmuxifier -Dm444 lib/* 38 + cp -r libexec $out 39 + installShellCompletion --cmd tmuxifier \ 40 + --bash completion/tmuxifier.bash \ 41 + --fish completion/tmuxifier.fish \ 42 + --zsh completion/tmuxifier.zsh 43 + install -t $out/share/tmuxifier/completion -Dm444 completion/tmuxifier.tcsh 44 + 45 + runHook postInstall 46 + ''; 47 + 48 + meta = with lib; { 49 + description = "Powerful session, window & pane management for Tmux"; 50 + homepage = "https://github.com/jimeh/tmuxifier"; 51 + license = licenses.mit; 52 + mainProgram = "tmuxifier"; 53 + maintainers = with maintainers; [ wigust ]; 54 + platforms = platforms.unix; 55 + }; 56 + }