40 lines
812 B
Nix
40 lines
812 B
Nix
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv }:
|
|
|
|
let
|
|
rubyEnv = bundlerEnv {
|
|
name = "gitaly-env";
|
|
inherit ruby;
|
|
gemdir = ./.;
|
|
};
|
|
in buildGoPackage rec {
|
|
version = "0.43.1";
|
|
name = "gitaly-${version}";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitaly";
|
|
rev = "v${version}";
|
|
sha256 = "19ggfc5nwv8q1wq739ab8qdfdngpi33431dgfa9593p6ad7v6hyq";
|
|
};
|
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitaly";
|
|
|
|
passthru = {
|
|
inherit rubyEnv;
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $ruby
|
|
cp -rv $src/ruby/{bin,lib,vendor} $ruby
|
|
'';
|
|
|
|
outputs = [ "bin" "out" "ruby" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.gitlab.com/;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ roblabla ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|