2017-09-03 15:38:28 +02:00
|
|
|
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv }:
|
2017-07-05 23:53:31 +02:00
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
let
|
|
|
|
rubyEnv = bundlerEnv {
|
|
|
|
name = "gitaly-env";
|
|
|
|
inherit ruby;
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in buildGoPackage rec {
|
2017-11-06 19:13:35 +01:00
|
|
|
version = "0.43.1";
|
2017-07-05 23:53:31 +02:00
|
|
|
name = "gitaly-${version}";
|
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
src = fetchFromGitLab {
|
2017-07-05 23:53:31 +02:00
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitaly";
|
|
|
|
rev = "v${version}";
|
2017-11-06 19:13:35 +01:00
|
|
|
sha256 = "19ggfc5nwv8q1wq739ab8qdfdngpi33431dgfa9593p6ad7v6hyq";
|
2017-07-05 23:53:31 +02:00
|
|
|
};
|
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitaly";
|
2017-07-05 23:53:31 +02:00
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
passthru = {
|
|
|
|
inherit rubyEnv;
|
|
|
|
};
|
2017-07-05 23:53:31 +02:00
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $ruby
|
|
|
|
cp -rv $src/ruby/{bin,lib,vendor} $ruby
|
2017-07-05 23:53:31 +02:00
|
|
|
'';
|
|
|
|
|
2017-09-03 15:38:28 +02:00
|
|
|
outputs = [ "bin" "out" "ruby" ];
|
|
|
|
|
2017-07-05 23:53:31 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.gitlab.com/;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ roblabla ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|