anchor.diff:        mkdir -p $out/bin
         makeWrapper ${cfg.packages.gitlab.rubyEnv}/bin/rails $out/bin/gitlab-rails \
             ${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \
  -          --set PATH '${lib.makeBinPath [ pkgs.nodejs pkgs.gzip pkgs.git pkgs.gnutar postgresqlPackage pkgs.coreutils pkgs.procps ]}:$PATH' \
  +          --set PATH '${lib.makeBinPath runtimeDeps}:$PATH' \
             --chdir '${cfg.packages.gitlab}/share/gitlab'
        '';
     };
  
positive.code:       mkdir -p $out/bin
        makeWrapper ${cfg.packages.gitlab.rubyEnv}/bin/rake $out/bin/gitlab-rake \
            ${concatStrings (mapAttrsToList (name: value: "--set ${name} '${value}' ") gitlabEnv)} \
            --set PATH '${lib.makeBinPath [ pkgs.nodejs pkgs.gzip pkgs.git pkgs.gnutar postgresqlPackage pkgs.coreutils pkgs.procps ]}:$PATH' \
            --set RAKEOPT '-f ${cfg.packages.gitlab}/share/gitlab/Rakefile' \
            --chdir '${cfg.packages.gitlab}/share/gitlab'
       '';
  
negative.code:     MALLOC_ARENA_MAX = "2";
    } // cfg.extraEnv;
  
    runtimeDeps = with pkgs; [
      nodejs
      gzip
      git
      gnutar
      postgresqlPackage
      coreutils
      procps
    ];
  
    gitlab-rake = pkgs.stdenv.mkDerivation {
      name = "gitlab-rake";
      buildInputs = [ pkgs.makeWrapper ];
  