11 stdenv.mkDerivation rec {
15 # `src` attribute for nix-update
16 src = fetchFromGitLab {
20 hash = "sha256-KG8YYGVWkfazVm8lOGs+Tg79wDl5O33JLkKrYBSIZYk=";
23 # we actually use the gitaly build system
25 cp -r ${gitaly.src} source
28 mkdir -p source/_build/deps
30 cp -r ${src} source/_build/deps/git-distribution
31 chmod -R +w source/_build/deps/git-distribution
33 # FIXME? maybe just patch the makefile?
34 echo -n 'v${version} DEVELOPER=1 DEVOPTS=no-error USE_LIBPCRE=YesPlease NO_PERL=YesPlease NO_EXPAT=YesPlease NO_TCLTK=YesPlease NO_GETTEXT=YesPlease NO_PYTHON=YesPlease' > source/_build/deps/git-distribution.version
35 echo -n 'v${version}' > source/_build/deps/git-distribution/version
37 sourceRoot = "source";
39 buildFlags = [ "git" ];
47 # The build phase already installs it all
48 GIT_PREFIX = placeholder "out";
52 homepage = "https://git-scm.com/";
53 description = "Distributed version control system - with Gitaly patches";
54 license = lib.licenses.gpl2Only;
55 platforms = lib.platforms.all;
56 maintainers = lib.teams.gitlab.members;