2017-09-03 14:38:28 +01:00
|
|
|
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv }:
|
2017-07-05 22:53:31 +01:00
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
let
|
|
|
|
rubyEnv = bundlerEnv {
|
|
|
|
name = "gitaly-env";
|
|
|
|
inherit ruby;
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in buildGoPackage rec {
|
2018-10-23 11:23:07 +01:00
|
|
|
version = "0.125.1";
|
2017-07-05 22:53:31 +01:00
|
|
|
name = "gitaly-${version}";
|
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
src = fetchFromGitLab {
|
2017-07-05 22:53:31 +01:00
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitaly";
|
|
|
|
rev = "v${version}";
|
2018-10-23 11:23:07 +01:00
|
|
|
sha256 = "0vbxjqjs1r5c350r67812andasby5zk25xlaqp201lmlvamiv0ni";
|
2017-07-05 22:53:31 +01:00
|
|
|
};
|
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitaly";
|
2017-07-05 22:53:31 +01:00
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
passthru = {
|
|
|
|
inherit rubyEnv;
|
|
|
|
};
|
2018-09-25 01:11:36 +01:00
|
|
|
|
2018-09-21 08:33:18 +01:00
|
|
|
buildInputs = [ rubyEnv.wrappedRuby ];
|
2018-06-06 12:04:35 +01:00
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $ruby
|
2018-10-08 13:54:32 +01:00
|
|
|
cp -rv $src/ruby/{bin,lib} $ruby
|
2017-07-05 22:53:31 +01:00
|
|
|
'';
|
|
|
|
|
2017-09-03 14:38:28 +01:00
|
|
|
outputs = [ "bin" "out" "ruby" ];
|
|
|
|
|
2017-07-05 22:53:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.gitlab.com/;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ roblabla ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|