git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #50385 from kalbasit/nixpkgs_tmux-darwin-sensible-reattach

tmuxPlugins.sensible: hardcode the path of reattach-to-user-namespace

commit5de4fe9e8ad7f54b96e7e4b26ded1f81e09f8517 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 15 Nov 2018, 15:30 (8 years ago) parentb1c149d8657ad7
1 file changed+9−1
pkgs/misc/tmux-plugins/default.nix+9−1
pkgs/misc/tmux-plugins/default.nix+9−1
@@ -1,4 +1,9 @@
1−{ fetchgit, stdenv, pkgs }:
1+{ fetchgit
2+, lib
3+, pkgs
4+, reattach-to-user-namespace
5+, stdenv
6+}:
27
38let
49 rtpPath = "share/tmux-plugins";
@@ -187,6 +192,9 @@ in rec {
187192 rev = "e91b178ff832b7bcbbf4d99d9f467f63fd1b76b5";
188193 sha256 = "1z8dfbwblrbmb8sgb0k8h1q0dvfdz7gw57las8nwd5gj6ss1jyvx";
189194 };
195+ postInstall = lib.optionalString pkgs.stdenv.isDarwin ''
196+ sed -e 's:reattach-to-user-namespace:${reattach-to-user-namespace}/bin/reattach-to-user-namespace:g' -i $target/sensible.tmux
197+ '';
190198 };
191199
192200 sessionist = mkDerivation {