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

                              
                        
                                                                    



                           
                                                                                    
 


                                      
                                                      
                           
    
 
{ stdenv, fetchFromGitLab, git, go }:

stdenv.mkDerivation rec {
  pname = "gitlab-workhorse";

  version = "8.7.0";

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

  buildInputs = [ git go ];

  makeFlags = [ "PREFIX=$(out)" "VERSION=${version}" "GOCACHE=$(TMPDIR)/go-cache" ];

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