gitlab-shell: 5.9.3 -> 5.10.2

Changed files
+16 -5
pkgs
applications
version-management
+3 -5
pkgs/applications/version-management/gitlab-shell/default.nix
···
{ stdenv, ruby, bundler, fetchFromGitLab, go }:
stdenv.mkDerivation rec {
-
version = "5.9.3";
+
version = "5.10.2";
name = "gitlab-shell-${version}";
srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
-
sha256 = "12iil8ap9lbd7skj7xr2v6lsyjdd97svbmyj0n2j8m819fv0x27p";
+
sha256 = "16lwnzsppql7pkf8fka6cwkghdr57g225zvln9ii29w7nzz1hvaf";
};
-
buildInputs = [
-
ruby bundler go
-
];
+
buildInputs = [ ruby bundler go ];
patches = [ ./remove-hardcoded-locations.patch ./fixes.patch ];
+13
pkgs/applications/version-management/gitlab-shell/remove-hardcoded-locations.patch
···
end
def api
+
diff --git a/go/internal/config/config.go b/go/internal/config/config.go
+
index c57b4de..88cfc95 100644
+
--- a/go/internal/config/config.go
+
+++ b/go/internal/config/config.go
+
@@ -27,7 +27,7 @@ func New() (*Config, error) {
+
}
+
cfg.RootDir = dir
+
+
- configBytes, err := ioutil.ReadFile(path.Join(cfg.RootDir, configFile))
+
+ configBytes, err := ioutil.ReadFile(os.Getenv("GITLAB_SHELL_CONFIG_PATH"))
+
if err != nil {
+
return nil, err
+
}