10 stdenv.mkDerivation rec {
12 version = "2.44.2.gl1";
14 # `src` attribute for nix-update
15 src = fetchFromGitLab {
19 hash = "sha256-VIffbZZEbGjVW1No8zojSQlX/ciJ2DJnaogNlQtc77o=";
22 # we actually use the gitaly build system
24 cp -r ${gitaly.src} source
27 mkdir -p source/_build/deps
29 cp -r ${src} source/_build/deps/git-distribution
30 chmod -R +w source/_build/deps/git-distribution
32 # FIXME? maybe just patch the makefile?
33 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
34 echo -n 'v${version}' > source/_build/deps/git-distribution/version
36 sourceRoot = "source";
38 buildFlags = [ "git" ];
46 # The build phase already installs it all
47 GIT_PREFIX = placeholder "out";
51 homepage = "https://git-scm.com/";
52 description = "Distributed version control system - with Gitaly patches";
53 license = lib.licenses.gpl2Only;
54 platforms = lib.platforms.all;
55 maintainers = lib.teams.gitlab.members;