Files
nixpkgs/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
T
Lara 06fd3da981 gitlab: 14.3.2 -> 14.3.3
(cherry picked from commit e7331d2e855145c651f9c2370e6732e5e443a27b)
2021-10-14 12:03:20 +00:00

31 lines
720 B
Nix

{ lib, fetchFromGitLab, git, buildGoModule }:
let
data = (builtins.fromJSON (builtins.readFile ../data.json));
in
buildGoModule rec {
pname = "gitlab-workhorse";
version = "14.3.3";
src = fetchFromGitLab {
owner = data.owner;
repo = data.repo;
rev = data.rev;
sha256 = data.repo_hash;
};
sourceRoot = "source/workhorse";
vendorSha256 = "sha256-piA14jYFV+FD20kR38rN1o329eeYAW/PmS0QI1GaU50=";
buildInputs = [ git ];
buildFlagsArray = "-ldflags=-X main.Version=${version}";
doCheck = false;
meta = with lib; {
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
license = licenses.mit;
};
}