nixpkgs/pkgs/applications/version-management/gitlab/gitaly/default.nix
2018-12-25 15:25:45 +01:00

42 lines
846 B
Nix

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