gitlab: 10.8.0 -> 11.2.3
This commit is contained in:
committed by
Robin Gloster
parent
bfc8d80c6e
commit
51c1830147
@@ -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.";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user