diff options
author | Kristoffer Thømt Ravneberg <ktra@dbc.dk> | 2018-09-21 09:37:51 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2018-09-25 03:53:32 +0200 |
commit | 51c18301478ba4e6c5e87bd5e103fe8bcd08a866 (patch) | |
tree | 1b367cdc7c44b00ddd998ac462475dec159e8c1c /pkgs/applications/version-management/gitlab/default.nix | |
parent | bfc8d80c6ec842b21b4a19306a871db7010048d8 (diff) | |
download | nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar.gz nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar.bz2 nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar.lz nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar.xz nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.tar.zst nixlib-51c18301478ba4e6c5e87bd5e103fe8bcd08a866.zip |
gitlab: 10.8.0 -> 11.2.3
Diffstat (limited to 'pkgs/applications/version-management/gitlab/default.nix')
-rw-r--r-- | pkgs/applications/version-management/gitlab/default.nix | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/pkgs/applications/version-management/gitlab/default.nix b/pkgs/applications/version-management/gitlab/default.nix index 64e0ef2b59d0..ebfcfc5bbe73 100644 --- a/pkgs/applications/version-management/gitlab/default.nix +++ b/pkgs/applications/version-management/gitlab/default.nix @@ -1,5 +1,5 @@ -{ stdenv, lib, fetchurl, fetchFromGitHub, bundlerEnv -, ruby, tzdata, git, procps, nettools +{ stdenv, lib, fetchurl, fetchFromGitLab, bundlerEnv +, ruby, tzdata, git, procps, nettools, }: let @@ -8,19 +8,19 @@ let inherit ruby; gemdir = ./.; groups = [ "default" "unicorn" "ed25519" "metrics" ]; - meta = with lib; { - homepage = http://www.gitlab.com/; - platforms = platforms.linux; - maintainers = with maintainers; [ fpletz globin ]; - license = licenses.mit; - }; }; - version = "10.8.0"; + version = "11.2.3"; gitlabDeb = fetchurl { - url = "https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/jessie/gitlab-ce_${version}-ce.0_amd64.deb/download"; - sha256 = "0j5jrlwfpgwfirjnqb9w4snl9w213kdxb1ajyrla211q603d4j34"; + url = "https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/stretch/gitlab-ce_${version}-ce.0_amd64.deb/download.deb"; + sha256 = "1z7mj412zj88ia24caq41bi5p1jbcfwnrvak3bqf1113f0snkb0x"; + }; + gitlab = fetchFromGitLab { + owner = "gitlab-org"; + repo = "gitlab-ce"; + rev = "v${version}"; + sha256 = "1j8y2phwdj6dv55racypm8r2v8bnzcxh2g1z33v9212hrgyjzrrh"; }; in @@ -28,20 +28,13 @@ in stdenv.mkDerivation rec { name = "gitlab-${version}"; - src = fetchFromGitHub { - owner = "gitlabhq"; - repo = "gitlabhq"; - rev = "v${version}"; - sha256 = "1idvi27xpghvvb3sv62afhcnnswvjlrbg5lld79a761kd4187cym"; - }; + src = gitlab; buildInputs = [ rubyEnv rubyEnv.wrappedRuby rubyEnv.bundler tzdata git procps nettools ]; - patches = [ - ./remove-hardcoded-locations.patch - ]; + patches = [ ./remove-hardcoded-locations.patch ]; postPatch = '' # For reasons I don't understand "bundle exec" ignores the @@ -72,13 +65,14 @@ stdenv.mkDerivation rec { buildPhase = '' mv config/gitlab.yml.example config/gitlab.yml - # work around unpacking deb containing binary with suid bit + # Building this requires yarn, node &c, so we just get it from the deb ar p ${gitlabDeb} data.tar.gz | gunzip > gitlab-deb-data.tar + # Work around unpacking deb containing binary with suid bit tar -f gitlab-deb-data.tar --delete ./opt/gitlab/embedded/bin/ksu tar -xf gitlab-deb-data.tar mv -v opt/gitlab/embedded/service/gitlab-rails/public/assets public - rm -rf opt + rm -rf opt # only directory in data.tar.gz mv config/gitlab.yml config/gitlab.yml.example rm -f config/secrets.yml @@ -105,10 +99,13 @@ stdenv.mkDerivation rec { ruby = rubyEnv.wrappedRuby; }; - meta = with stdenv.lib; { - description = "Web-based Git-repository manager"; - homepage = https://gitlab.com; + meta = with lib; { + homepage = http://www.gitlab.com/; + platforms = platforms.linux; + maintainers = with maintainers; [ fpletz globin krav ]; license = licenses.mit; platforms = platforms.linux; + description = "GitLab Community Edition"; + longDescription = "GitLab Community Edition (CE) is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and more. Self-host GitLab CE on your own servers, in a container, or on a cloud provider."; }; } |