2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oshka";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.4.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "k1LoW";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-fpWhqFK5h/U7DCC/SyhAlMyCMhjZHRLMlwakvlhOd3w=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-ZBI3WDXfJKBEF2rmUN3LvOOPT1185dHmj88qJKsdUiE=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
"-X github.com/k1LoW/oshka/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests requires a running Docker instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for extracting nested CI/CD supply chains and executing commands";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "oshka";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/k1LoW/oshka";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|