nixpkgs/pkgs/applications/version-management/gitaly/default.nix

40 lines
812 B
Nix
Raw Normal View History

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