gitlab-runner_1_11: add patch to fetch shells from system path

Changed files
+15
pkgs
development
tools
continuous-integration
+13
pkgs/development/tools/continuous-integration/gitlab-runner/v1-fix-shell-path.patch
···
···
+
diff --git a/shells/bash.go b/shells/bash.go
+
index c9c8b68..c97dbb5 100644
+
--- a/shells/bash.go
+
+++ b/shells/bash.go
+
@@ -208,7 +208,7 @@ func (b *BashShell) GetConfiguration(info common.ShellScriptInfo) (script *commo
+
if info.User != "" {
+
script.Command = "su"
+
if runtime.GOOS == "linux" {
+
- script.Arguments = append(script.Arguments, "-s", "/bin/"+b.Shell)
+
+ script.Arguments = append(script.Arguments, "-s", "/run/current-system/sw/bin/"+b.Shell)
+
}
+
script.Arguments = append(script.Arguments, info.User)
+
script.Arguments = append(script.Arguments, "-c", shellCommand)
+2
pkgs/development/tools/continuous-integration/gitlab-runner/v1.nix
···
sha256 = "1sjvlb5981ykc8hr4kp1ibh9jw2wdjjp9zs2nqs9lpsav4nda5fr";
};
buildInputs = [ go-bindata ];
preBuild = ''
···
sha256 = "1sjvlb5981ykc8hr4kp1ibh9jw2wdjjp9zs2nqs9lpsav4nda5fr";
};
+
patches = [ ./v1-fix-shell-path.patch ];
+
buildInputs = [ go-bindata ];
preBuild = ''