gitlab: Make sure the FOSS version isn't identified as EE
(cherry picked from commit 8f16b1629155ad0022bb7830739081532d1bae50)
This commit is contained in:
parent
34b9ccb9c8
commit
d3d1674b3f
@ -145,7 +145,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gitlabEnv = {
|
gitlabEnv = cfg.packages.gitlab.gitlabEnv // {
|
||||||
HOME = "${cfg.statePath}/home";
|
HOME = "${cfg.statePath}/home";
|
||||||
PUMA_PATH = "${cfg.statePath}/";
|
PUMA_PATH = "${cfg.statePath}/";
|
||||||
GITLAB_PATH = "${cfg.packages.gitlab}/share/gitlab/";
|
GITLAB_PATH = "${cfg.packages.gitlab}/share/gitlab/";
|
||||||
|
@ -131,6 +131,7 @@ stdenv.mkDerivation {
|
|||||||
${lib.optionalString (!gitlabEnterprise) ''
|
${lib.optionalString (!gitlabEnterprise) ''
|
||||||
# Remove all proprietary components
|
# Remove all proprietary components
|
||||||
rm -rf ee
|
rm -rf ee
|
||||||
|
sed -i 's/-ee//' ./VERSION
|
||||||
''}
|
''}
|
||||||
|
|
||||||
# For reasons I don't understand "bundle exec" ignores the
|
# For reasons I don't understand "bundle exec" ignores the
|
||||||
@ -181,6 +182,7 @@ stdenv.mkDerivation {
|
|||||||
GITLAB_PAGES_VERSION = data.passthru.GITLAB_PAGES_VERSION;
|
GITLAB_PAGES_VERSION = data.passthru.GITLAB_PAGES_VERSION;
|
||||||
GITLAB_SHELL_VERSION = data.passthru.GITLAB_SHELL_VERSION;
|
GITLAB_SHELL_VERSION = data.passthru.GITLAB_SHELL_VERSION;
|
||||||
GITLAB_WORKHORSE_VERSION = data.passthru.GITLAB_WORKHORSE_VERSION;
|
GITLAB_WORKHORSE_VERSION = data.passthru.GITLAB_WORKHORSE_VERSION;
|
||||||
|
gitlabEnv.FOSS_ONLY = lib.boolToString (!gitlabEnterprise);
|
||||||
tests = {
|
tests = {
|
||||||
nixos-test-passes = nixosTests.gitlab;
|
nixos-test-passes = nixosTests.gitlab;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user