Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f7c8e08c7f28
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac364d82a8da
Choose a head ref
  • 7 commits
  • 15 files changed
  • 1 contributor

Commits on Apr 26, 2018

  1. gitaly: 0.81.0 -> 0.95.0

    (cherry picked from commit 59ad993)
    globin committed Apr 26, 2018
    Copy the full SHA
    c37bedd View commit details
  2. gitlab-shell: 6.0.3 -> 7.1.2

    (cherry picked from commit ddec4ae)
    globin committed Apr 26, 2018
    Copy the full SHA
    92ba0f7 View commit details
  3. gitlab-workhorse: 3.6.0 -> 4.1.0

    (cherry picked from commit 775bbc2)
    globin committed Apr 26, 2018
    Copy the full SHA
    922fd39 View commit details
  4. gitlab: 10.5.6 -> 10.7.0

    (cherry picked from commit 04ab1ed)
    globin committed Apr 26, 2018
    Copy the full SHA
    789113e View commit details
  5. gitlab module: update to gitlab 10.7

    (cherry picked from commit 783fb86)
    globin committed Apr 26, 2018
    Copy the full SHA
    9f9d9f4 View commit details
  6. Revert "gitlab: disable"

    This reverts commit 68c4605.
    
    Gitlab has been fixed
    
    (cherry picked from commit 94f5e5a)
    globin committed Apr 26, 2018
    Copy the full SHA
    7baa950 View commit details
  7. gem-config.grpc: disable format hardening

    (cherry picked from commit 7673593)
    globin committed Apr 26, 2018
    Copy the full SHA
    ac364d8 View commit details
2 changes: 1 addition & 1 deletion nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -323,7 +323,7 @@
./services/misc/geoip-updater.nix
./services/misc/gitea.nix
#./services/misc/gitit.nix
#./services/misc/gitlab.nix
./services/misc/gitlab.nix
./services/misc/gitolite.nix
./services/misc/gogs.nix
./services/misc/gollum.nix
29 changes: 10 additions & 19 deletions nixos/modules/services/misc/gitlab.nix
Original file line number Diff line number Diff line change
@@ -8,9 +8,6 @@ let
cfg = config.services.gitlab;

ruby = cfg.packages.gitlab.ruby;
bundler = pkgs.bundler;

gemHome = "${cfg.packages.gitlab.rubyEnv}/${ruby.gemPath}";

gitlabSocket = "${cfg.statePath}/tmp/sockets/gitlab.socket";
gitalySocket = "${cfg.statePath}/tmp/sockets/gitaly.socket";
@@ -137,8 +134,6 @@ let

gitlabEnv = {
HOME = "${cfg.statePath}/home";
GEM_HOME = gemHome;
BUNDLE_GEMFILE = "${cfg.packages.gitlab}/share/gitlab/Gemfile";
UNICORN_PATH = "${cfg.statePath}/";
GITLAB_PATH = "${cfg.packages.gitlab}/share/gitlab/";
GITLAB_STATE_PATH = "${cfg.statePath}";
@@ -158,19 +153,17 @@ let

gitlab-rake = pkgs.stdenv.mkDerivation rec {
name = "gitlab-rake";
buildInputs = [ cfg.packages.gitlab cfg.packages.gitlab.rubyEnv pkgs.makeWrapper ];
phases = "installPhase fixupPhase";
buildPhase = "";
buildInputs = [ pkgs.makeWrapper ];
dontBuild = true;
unpackPhase = ":";
installPhase = ''
mkdir -p $out/bin
makeWrapper ${cfg.packages.gitlab.rubyEnv}/bin/bundle $out/bin/gitlab-bundle \
makeWrapper ${cfg.packages.gitlab.rubyEnv}/bin/rake $out/bin/gitlab-rake \
${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \
--set GITLAB_CONFIG_PATH '${cfg.statePath}/config' \
--set PATH '${lib.makeBinPath [ pkgs.nodejs pkgs.gzip pkgs.git pkgs.gnutar config.services.postgresql.package ]}:$PATH' \
--set RAKEOPT '-f ${cfg.packages.gitlab}/share/gitlab/Rakefile' \
--run 'cd ${cfg.packages.gitlab}/share/gitlab'
makeWrapper $out/bin/gitlab-bundle $out/bin/gitlab-rake \
--add-flags "exec rake"
'';
};

@@ -482,22 +475,20 @@ in {
Type = "simple";
User = cfg.user;
Group = cfg.group;
TimeoutSec = "300";
TimeoutSec = "infinity";
Restart = "on-failure";
WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
ExecStart="${cfg.packages.gitlab.rubyEnv}/bin/bundle exec \"sidekiq -C \"${cfg.packages.gitlab}/share/gitlab/config/sidekiq_queues.yml\" -e production -P ${cfg.statePath}/tmp/sidekiq.pid\"";
ExecStart="${cfg.packages.gitlab.rubyEnv}/bin/sidekiq -C \"${cfg.packages.gitlab}/share/gitlab/config/sidekiq_queues.yml\" -e production -P ${cfg.statePath}/tmp/sidekiq.pid";
};
};

systemd.services.gitaly = {
after = [ "network.target" "gitlab.service" ];
wantedBy = [ "multi-user.target" ];
environment.HOME = gitlabEnv.HOME;
environment.GEM_HOME = "${cfg.packages.gitaly.rubyEnv}/${ruby.gemPath}";
environment.GITLAB_SHELL_CONFIG_PATH = gitlabEnv.GITLAB_SHELL_CONFIG_PATH;
path = with pkgs; [ gitAndTools.git cfg.packages.gitaly.rubyEnv ruby ];
path = with pkgs; [ gitAndTools.git cfg.packages.gitaly.rubyEnv cfg.packages.gitaly.rubyEnv.wrappedRuby ];
serviceConfig = {
#PermissionsStartOnly = true; # preStart must be run as root
Type = "simple";
User = cfg.user;
Group = cfg.group;
@@ -529,7 +520,7 @@ in {
Type = "simple";
User = cfg.user;
Group = cfg.group;
TimeoutSec = "300";
TimeoutSec = "infinity";
Restart = "on-failure";
WorkingDirectory = gitlabEnv.HOME;
ExecStart =
@@ -658,10 +649,10 @@ in {
Type = "simple";
User = cfg.user;
Group = cfg.group;
TimeoutSec = "300";
TimeoutSec = "infinity";
Restart = "on-failure";
WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
ExecStart = "${cfg.packages.gitlab.rubyEnv}/bin/bundle exec \"unicorn -c ${cfg.statePath}/config/unicorn.rb -E production\"";
ExecStart = "${cfg.packages.gitlab.rubyEnv}/bin/unicorn -c ${cfg.statePath}/config/unicorn.rb -E production";
};

};
12 changes: 9 additions & 3 deletions pkgs/applications/version-management/gitaly/Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
source 'https://rubygems.org'

gem 'github-linguist', '~> 4.7.0', require: 'linguist'
gem 'rugged', '~> 0.27.0'
gem 'github-linguist', '~> 5.3.3', require: 'linguist'
gem 'gitlab-markup', '~> 1.6.2'
gem 'gitaly-proto', '~> 0.83.0', require: 'gitaly'
gem 'gitaly-proto', '~> 0.95.0', require: 'gitaly'
gem 'activesupport', '~> 5.0.2'
gem 'rdoc', '~> 4.2'
gem 'gollum-lib', '~> 4.2', require: false
gem 'gollum-rugged_adapter', '~> 0.4.4', require: false
gem 'grpc', '~> 1.8.0'
gem 'grpc', '~> 1.10.0'
gem 'sentry-raven', '~> 2.7.2', require: false

# Detects the open source license the repository includes
# This version needs to be in sync with GitLab CE/EE
gem 'licensee', '~> 8.7.0'

# Locked until https://github.com/google/protobuf/issues/4210 is closed
gem 'google-protobuf', '= 3.5.1'
31 changes: 19 additions & 12 deletions pkgs/applications/version-management/gitaly/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -9,22 +9,22 @@ GEM
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ast (2.3.0)
charlock_holmes (0.7.5)
charlock_holmes (0.7.6)
concurrent-ruby (1.0.5)
diff-lcs (1.3)
escape_utils (1.1.1)
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
gemojione (3.3.0)
json
gitaly-proto (0.83.0)
gitaly-proto (0.95.0)
google-protobuf (~> 3.1)
grpc (~> 1.0)
github-linguist (4.7.6)
charlock_holmes (~> 0.7.3)
grpc (~> 1.10)
github-linguist (5.3.3)
charlock_holmes (~> 0.7.5)
escape_utils (~> 1.1.0)
mime-types (>= 1.19)
rugged (>= 0.23.0b)
rugged (>= 0.25.1)
github-markup (1.6.1)
gitlab-grit (2.8.2)
charlock_holmes (~> 0.6)
@@ -60,13 +60,15 @@ GEM
multi_json (~> 1.11)
os (~> 0.9)
signet (~> 0.7)
grpc (1.8.7)
grpc (1.10.0)
google-protobuf (~> 3.1)
googleapis-common-protos-types (~> 1.0.0)
googleauth (>= 0.5.1, < 0.7)
i18n (0.8.1)
json (2.1.0)
jwt (2.1.0)
licensee (8.7.0)
rugged (~> 0.24)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
@@ -87,7 +89,7 @@ GEM
ast (~> 2.2)
posix-spawn (0.3.13)
powerpack (0.1.1)
public_suffix (3.0.1)
public_suffix (3.0.2)
rainbow (2.2.2)
rake
rake (12.1.0)
@@ -118,9 +120,11 @@ GEM
rubocop-rspec (1.17.0)
rubocop (>= 0.50.0)
ruby-progressbar (1.8.3)
rugged (0.26.0)
rugged (0.27.0)
sanitize (2.1.0)
nokogiri (>= 1.4.4)
sentry-raven (2.7.2)
faraday (>= 0.7.6, < 1.0)
signet (0.8.1)
addressable (~> 2.3)
faraday (~> 0.9)
@@ -137,16 +141,19 @@ PLATFORMS

DEPENDENCIES
activesupport (~> 5.0.2)
gitaly-proto (~> 0.83.0)
github-linguist (~> 4.7.0)
gitaly-proto (~> 0.95.0)
github-linguist (~> 5.3.3)
gitlab-markup (~> 1.6.2)
gitlab-styles (~> 2.0.0)
gollum-lib (~> 4.2)
gollum-rugged_adapter (~> 0.4.4)
google-protobuf (= 3.5.1)
grpc (~> 1.8.0)
grpc (~> 1.10.0)
licensee (~> 8.7.0)
rdoc (~> 4.2)
rspec
rugged (~> 0.27.0)
sentry-raven (~> 2.7.2)

BUNDLED WITH
1.16.1
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitaly/default.nix
Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ let
gemdir = ./.;
};
in buildGoPackage rec {
version = "0.81.0";
version = "0.95.0";
name = "gitaly-${version}";

src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
sha256 = "01sw5y201xbd21k9r7xmzqiiypb924ac95nqqfhzplqnssa98n9y";
sha256 = "0kadld8372vj0nm692mcn8j4ngph5gzzrzp8dmb4g26h10nq9k6a";
};

goPackagePath = "gitlab.com/gitlab-org/gitaly";
42 changes: 30 additions & 12 deletions pkgs/applications/version-management/gitaly/gemset.nix
Original file line number Diff line number Diff line change
@@ -28,10 +28,10 @@
charlock_holmes = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "09dn56sx0kcw0k8ypiynhnhhiq7ff9m7b57l8wvnxj82wxsjb54y";
sha256 = "1nf1l31n10yaark2rrg5qzyzcx9w80681449s3j09qmnipsl8rl5";
type = "gem";
};
version = "0.7.5";
version = "0.7.6";
};
concurrent-ruby = {
source = {
@@ -79,19 +79,19 @@
dependencies = ["google-protobuf" "grpc"];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0z3asy104q36sshq9zhmgcm32sg8qr8jvy0mi19nakkq7prrkwqv";
sha256 = "0xwgi3902c89kx0fa176wz289nh67qm9bmx0yykrg5xx1lwk8a2j";
type = "gem";
};
version = "0.83.0";
version = "0.95.0";
};
github-linguist = {
dependencies = ["charlock_holmes" "escape_utils" "mime-types" "rugged"];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0c8w92yzjfs7pjnm8bdjsgyd1jpisn10fb6dy43381k1k8pxsifd";
sha256 = "0kgashbqpypv329m63b85ri1dx0gppwd0832hvwh124lk5b19drk";
type = "gem";
};
version = "4.7.6";
version = "5.3.3";
};
github-markup = {
source = {
@@ -184,10 +184,10 @@
dependencies = ["google-protobuf" "googleapis-common-protos-types" "googleauth"];
source = {
remotes = ["https://rubygems.org"];
sha256 = "02b80pyg4rgkiafyh1jqnfh6xp9abpd1x0a9c2h98f0851scw28b";
sha256 = "17wvqhjmldxph4li402rvfbyzi5455lzmfr2y19kq9ghrzjyad82";
type = "gem";
};
version = "1.8.7";
version = "1.10.0";
};
i18n = {
source = {
@@ -213,6 +213,15 @@
};
version = "2.1.0";
};
licensee = {
dependencies = ["rugged"];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1nhj0vx30llqyb7q52bwmrgy9xpjk3q48k98h0dvq83ym4v216a2";
type = "gem";
};
version = "8.7.0";
};
little-plugger = {
source = {
remotes = ["https://rubygems.org"];
@@ -340,10 +349,10 @@
public_suffix = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "0mvzd9ycjw8ydb9qy3daq3kdzqs2vpqvac4dqss6ckk4rfcjc637";
sha256 = "1x5h1dh1i3gwc01jbg01rly2g6a1qwhynb1s8a30ic507z1nh09s";
type = "gem";
};
version = "3.0.1";
version = "3.0.2";
};
rainbow = {
dependencies = ["rake"];
@@ -460,10 +469,10 @@
rugged = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "1rqhg6g2q2av3fb6iyzfd3hfjxvr8hs32w7llil2kbx73crvc2dy";
sha256 = "0q1krxgd0ql03x8m9m05x5sxizw5sc7lms7rkp44qf45grpdk3v3";
type = "gem";
};
version = "0.26.0";
version = "0.27.0";
};
sanitize = {
dependencies = ["nokogiri"];
@@ -474,6 +483,15 @@
};
version = "2.1.0";
};
sentry-raven = {
dependencies = ["faraday"];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0yf2gysjw6sy1xcp2jw35z9cp83pwx33lq0qyvaqbs969j4993r4";
type = "gem";
};
version = "2.7.2";
};
signet = {
dependencies = ["addressable" "faraday" "jwt" "multi_json"];
source = {
6 changes: 3 additions & 3 deletions pkgs/applications/version-management/gitlab-shell/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, ruby, bundler, fetchFromGitLab, go }:

stdenv.mkDerivation rec {
version = "6.0.3";
version = "7.1.2";
name = "gitlab-shell-${version}";

srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
sha256 = "073y41d9sqy6l6dxbiml6c13fq98qcb0jf86w9slld1mcw19cmrk";
sha256 = "1mkr2k2ldn5hl84acajvfify97qy80lmicxx49jbpln22vh9rcni";
};

buildInputs = [ ruby bundler go ];
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = http://www.gitlab.com/;
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
maintainers = with maintainers; [ fpletz globin ];
license = licenses.mit;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitlab-shell/fixes.patch
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ index 30a6b71..46b4dfa 100644
@@ -26,8 +26,8 @@ module GoBuild
raise "env must be a hash" unless env.is_a?(Hash)
raise "cmd must be an array" unless cmd.is_a?(Array)
- if !system(env, *cmd)

- unless system(env, *cmd)
- abort "command failed: #{env.inspect} #{cmd.join(' ')}"
- end
+ puts "Starting #{env.inspect} #{cmd.join(' ')}"
Original file line number Diff line number Diff line change
@@ -19,9 +19,9 @@ index 1452f95..2b40327 100644
end

# We use 'chdir: ROOT_PATH' to let the next executable know where config.yml is.
- Kernel::exec(env, *args, unsetenv_others: true, chdir: ROOT_PATH)
- Kernel.exec(env, *args, unsetenv_others: true, chdir: ROOT_PATH)
+ # Except we don't, because we're already in the right directory on nixos!
+ Kernel::exec(env, *args, unsetenv_others: true)
+ Kernel.exec(env, *args, unsetenv_others: true)
end

def api
Loading