about summary refs log tree commit diff
path: root/pkgs/applications/version-management/gitlab-git-http-server/default.nix
blob: 98b14d2ce86a712990d84ce137036df4fdce52e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchgit, git, go }:

stdenv.mkDerivation rec {
  version = "0.2.14";
  name = "gitlab-git-http-server-${version}";

  srcs = fetchgit {
    url = "https://gitlab.com/gitlab-org/gitlab-git-http-server.git";
    rev = "7c63f08f7051348e56b903fc0bbefcfed398fc1c";
    sha256 = "557d63a90c61371598b971a06bc056993610b58c2ef5762d9ef145ec2fdada78";
  };

  buildInputs = [ git go ];

  buildPhase = ''
    make PREFIX=$out
  '';

  installPhase = ''
    mkdir -p $out/bin
    make install PREFIX=$out
  '';
}