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


                                     
                    




                                       
                        
                                                                    













                                               
 


                                      
                                                      
                           
    
 
{ stdenv, fetchFromGitLab, git, go }:

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

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

  buildInputs = [ git go ];

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

  buildPhase = ''
    make PREFIX=$out
  '';

  installPhase = ''
    mkdir -p $out/bin
    make install PREFIX=$out
  '';

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