From 15879c318e4218283c0e90b4d73aa43b92640463 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 19 Jun 2019 13:06:56 -0400 Subject: [PATCH] vagrant: Don't patch salt provisioner's shebang The script is intended to run on remote systems, not on the local system. The shebang **has** to work where nix and the current store does not exist. --- pkgs/development/tools/vagrant/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/vagrant/default.nix b/pkgs/development/tools/vagrant/default.nix index 2d4bae560bd..7b47cf0aa08 100644 --- a/pkgs/development/tools/vagrant/default.nix +++ b/pkgs/development/tools/vagrant/default.nix @@ -84,6 +84,13 @@ in buildRubyGem rec { fi ''; + # `patchShebangsAuto` patches this one script which is intended to run + # on foreign systems. + postFixup = '' + sed -i -e '1c#!/bin/sh -' \ + $out/lib/ruby/gems/*/gems/vagrant-*/plugins/provisioners/salt/bootstrap-salt.sh + ''; + passthru = { inherit ruby deps; };