2022-11-02 22:02:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.8.0";
|
2022-11-02 22:02:43 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "agola";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agola-io";
|
|
|
|
repo = "agola";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-nU04MVkUC+m6Ga4qDUH9KrA0zbYmttAicpvdxbaBG0Y=";
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-k3Sip9CqTGRTWxr3RzZf0jCrm4AfUrpY/wSTmHy+yik=";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2023-07-15 17:15:38 +00:00
|
|
|
"-s"
|
2022-11-02 22:02:43 +00:00
|
|
|
"-w"
|
|
|
|
"-X agola.io/agola/cmd.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
tags = [
|
|
|
|
"sqlite_unlock_notify"
|
|
|
|
];
|
|
|
|
|
|
|
|
# somehow the tests get stuck
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Agola: CI/CD Redefined ";
|
|
|
|
homepage = "https://agola.io";
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|