mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
34 lines
702 B
Nix
34 lines
702 B
Nix
{ 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;
|
|
};
|
|
}
|