at 22.05-pre 30 lines 682 B view raw
1{ lib, fetchFromGitLab, git, buildGoModule }: 2let 3 data = lib.importJSON ../data.json; 4in 5buildGoModule rec { 6 pname = "gitlab-workhorse"; 7 8 version = "14.4.2"; 9 10 src = fetchFromGitLab { 11 owner = data.owner; 12 repo = data.repo; 13 rev = data.rev; 14 sha256 = data.repo_hash; 15 }; 16 17 sourceRoot = "source/workhorse"; 18 19 vendorSha256 = "sha256-yLZY9FFUS4nJl4TkE6MwICCEwtPTXFc5zuj4FgiIy74="; 20 buildInputs = [ git ]; 21 ldflags = [ "-X main.Version=${version}" ]; 22 doCheck = false; 23 24 meta = with lib; { 25 homepage = "http://www.gitlab.com/"; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ fpletz globin talyz ]; 28 license = licenses.mit; 29 }; 30}