biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / version-management / gitlab / gitaly / git.nix
bloba6d272b2fbb7aaedeb7c8064b84070e64f35b72c
1 { stdenv
2 , lib
3 , gitaly
4 , fetchFromGitLab
5 , curl
6 , pcre2
7 , zlib
8 }:
10 stdenv.mkDerivation rec {
11   pname = "gitaly-git";
12   version = "2.44.2.gl1";
14   # `src` attribute for nix-update
15   src = fetchFromGitLab {
16     owner = "gitlab-org";
17     repo = "git";
18     rev = "v${version}";
19     hash = "sha256-VIffbZZEbGjVW1No8zojSQlX/ciJ2DJnaogNlQtc77o=";
20   };
22   # we actually use the gitaly build system
23   unpackPhase = ''
24     cp -r ${gitaly.src} source
25     chmod -R +w 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
35   '';
36   sourceRoot = "source";
38   buildFlags = [ "git" ];
40   buildInputs = [
41     curl
42     pcre2
43     zlib
44   ];
46   # The build phase already installs it all
47   GIT_PREFIX = placeholder "out";
48   dontInstall = true;
50   meta = {
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;
56   };