2021-09-03 16:53:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oshka";
|
2022-02-12 21:35:07 +00:00
|
|
|
version = "0.4.1";
|
2021-09-03 16:53:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "k1LoW";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-12 21:35:07 +00:00
|
|
|
sha256 = "sha256-fpWhqFK5h/U7DCC/SyhAlMyCMhjZHRLMlwakvlhOd3w=";
|
2021-09-03 16:53:36 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-ZBI3WDXfJKBEF2rmUN3LvOOPT1185dHmj88qJKsdUiE=";
|
2021-09-03 16:53:36 +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";
|
|
|
|
homepage = "https://github.com/k1LoW/oshka";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|