mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
41 lines
848 B
Nix
41 lines
848 B
Nix
{ stdenv, fetchFromGitLab, buildGoPackage, ruby, bundlerEnv }:
|
|
|
|
let
|
|
rubyEnv = bundlerEnv {
|
|
name = "gitaly-env";
|
|
inherit ruby;
|
|
gemdir = ./.;
|
|
};
|
|
in buildGoPackage rec {
|
|
version = "0.125.0";
|
|
name = "gitaly-${version}";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitaly";
|
|
rev = "v${version}";
|
|
sha256 = "14a4qgpnspzw9cjqh6gbw3771bxfm789ibvmvb8jc4pklvbyl4mi";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|