mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
31 lines
666 B
Nix
31 lines
666 B
Nix
{ lib, fetchFromGitLab, git, buildGoModule }:
|
|
let
|
|
data = lib.importJSON ../data.json;
|
|
in
|
|
buildGoModule rec {
|
|
pname = "gitlab-workhorse";
|
|
|
|
version = "16.1.3";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = data.owner;
|
|
repo = data.repo;
|
|
rev = data.rev;
|
|
sha256 = data.repo_hash;
|
|
};
|
|
|
|
sourceRoot = "${src.name}/workhorse";
|
|
|
|
vendorSha256 = "sha256-lKl/V2fti0eqrEoeJNNwvJbZO7z7v+5HlES+dyxxcP4=";
|
|
buildInputs = [ git ];
|
|
ldflags = [ "-X main.Version=${version}" ];
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.gitlab.com/";
|
|
platforms = platforms.linux;
|
|
maintainers = teams.gitlab.members;
|
|
license = licenses.mit;
|
|
};
|
|
}
|