summary refs log blame commit diff
path: root/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
blob: 956515897a61d9c5b140b7c3e08a9b51ea8f83db (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
 
                         

                                       
                    
 


                              
                        
                                                                    



                           
                                               
 
                                                       
 


                                      
                                                      
                           
    
 
{ stdenv, fetchFromGitLab, git, go }:

stdenv.mkDerivation rec {
  name = "gitlab-workhorse-${version}";

  version = "7.0.0";

  srcs = fetchFromGitLab {
    owner = "gitlab-org";
    repo = "gitlab-workhorse";
    rev = "v${version}";
    sha256 = "1mmfb7h5sbva2kv9h9cxfg7dyksxrwwikq7jwggfawqaadzwm677";
  };

  buildInputs = [ git go ];

  patches = [ ./remove-hardcoded-paths.patch ];

  makeFlags = [ "PREFIX=$(out)" "VERSION=${version}" ];

  meta = with stdenv.lib; {
    homepage = http://www.gitlab.com/;
    platforms = platforms.unix;
    maintainers = with maintainers; [ fpletz globin ];
    license = licenses.mit;
  };
}