Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitLab, 4 buildGoModule, 5 ruby, 6 libkrb5, 7}: 8 9buildGoModule rec { 10 pname = "gitlab-shell"; 11 version = "14.43.0"; 12 13 # nixpkgs-update: no auto update 14 src = fetchFromGitLab { 15 owner = "gitlab-org"; 16 repo = "gitlab-shell"; 17 rev = "v${version}"; 18 hash = "sha256-JBcfsOLutxHUk5z+vXP8CnVSmJazhqJk4fZ0vONIswo="; 19 }; 20 21 buildInputs = [ 22 ruby 23 libkrb5 24 ]; 25 26 patches = [ 27 ./remove-hardcoded-locations.patch 28 ]; 29 30 vendorHash = "sha256-zuxgWBrrftkNjMhAXs8cAcQmb8RLQqvnFhU0HnUUcTA="; 31 32 subPackages = [ 33 "cmd/gitlab-shell" 34 "cmd/gitlab-sshd" 35 "cmd/gitlab-shell-check" 36 "cmd/gitlab-shell-authorized-principals-check" 37 "cmd/gitlab-shell-authorized-keys-check" 38 ]; 39 40 postInstall = '' 41 cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/ 42 ''; 43 doCheck = false; 44 45 meta = with lib; { 46 description = "SSH access and repository management app for GitLab"; 47 homepage = "http://www.gitlab.com/"; 48 platforms = platforms.linux; 49 teams = [ teams.gitlab ]; 50 license = licenses.mit; 51 }; 52}