diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-11-30 00:56:22 +0100 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-12-12 18:01:31 +0100 |
commit | 13e58784bfd3261589ac0fb07782dbaa2a68817f (patch) | |
tree | b9a2a1d1b6a39d787f6a2413c1dcb5e7a95a7460 /pkgs/applications/version-management | |
parent | 59995e168cf3f682ca8086a58015edc9781a847b (diff) |
nixos/gitlab: fixes
- fix timezone data not found - fix module, add simple test - allow to set port
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/gitlab/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/gitlab/default.nix b/pkgs/applications/version-management/gitlab/default.nix index 66e69821893cf..76f4bb1fc7064 100644 --- a/pkgs/applications/version-management/gitlab/default.nix +++ b/pkgs/applications/version-management/gitlab/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ruby, rubyLibs, libxslt, libxml2, pkgconfig, libffi, postgresql, libyaml, ncurses, curl, openssh, redis, zlib, icu, checkinstall, logrotate, docutils, cmake, git, gdbm, readline, unzip, gnumake, which }: +{ stdenv, fetchurl, ruby, rubyLibs, libiconv, libxslt, libxml2, pkgconfig, libffi, postgresql, libyaml, ncurses, curl, openssh, redis, zlib, icu, checkinstall, logrotate, docutils, cmake, git, gdbm, readline, unzip, gnumake, which, tzdata }: let gemspec = map (gem: fetchurl { url=gem.url; sha256=gem.hash; }) (import ./Gemfile.nix); @@ -61,6 +61,10 @@ in stdenv.mkDerivation rec { # See https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide: bundle install -j4 --verbose --local --deployment --without development test mysql + # Fix timezone data directory + substituteInPlace $out/share/gitlab/vendor/bundle/ruby/*/gems/tzinfo-*/lib/tzinfo/zoneinfo_data_source.rb \ + --replace "/etc/zoneinfo" "${tzdata}/share/zoneinfo" + # For reasons I don't understand "bundle exec" ignores the # RAILS_ENV causing tests to be executed that fail because we're # not installing development and test gems above. Deleting the |