mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
c39b6025d8
Fixes #14795.
30 lines
574 B
Nix
30 lines
574 B
Nix
{ stdenv, fetchFromGitLab, git, go }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.7.8";
|
|
name = "gitlab-workhorse-${version}";
|
|
|
|
srcs = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitlab-workhorse";
|
|
rev = "v${version}";
|
|
sha256 = "03lhgmd8w2ainvgf2q3pgafz2jl5g4x32qyybyijlyxfl07vkg4g";
|
|
};
|
|
|
|
buildInputs = [ git go ];
|
|
|
|
patches = [ ./remove-hardcoded-paths.patch ];
|
|
|
|
buildPhase = ''
|
|
make PREFIX=$out
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
make install PREFIX=$out
|
|
'';
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|