mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-0-2-released/
(cherry picked from commit c77094de96)
37 lines
755 B
Nix
37 lines
755 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
git,
|
|
buildGoModule,
|
|
}:
|
|
let
|
|
data = lib.importJSON ../data.json;
|
|
in
|
|
buildGoModule (finalAttrs: {
|
|
pname = "gitlab-workhorse";
|
|
|
|
version = "18.11.5";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitLab {
|
|
owner = data.owner;
|
|
repo = data.repo;
|
|
rev = data.rev;
|
|
sha256 = data.repo_hash;
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/workhorse";
|
|
|
|
vendorHash = "sha256-X1+neA2g61BR1VRKXzeqNath0+SYXRbU4vzEg1KD2sY=";
|
|
buildInputs = [ git ];
|
|
ldflags = [ "-X main.Version=${finalAttrs.version}" ];
|
|
doCheck = false;
|
|
prodyVendor = true;
|
|
|
|
meta = {
|
|
homepage = "http://www.gitlab.com/";
|
|
platforms = lib.platforms.linux;
|
|
teams = [ lib.teams.gitlab ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
})
|