nixpkgs/pkgs/development/tools/oshka/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
770 B
Nix
Raw Normal View History

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
};
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";
mainProgram = "oshka";
2021-09-03 16:53:36 +00:00
homepage = "https://github.com/k1LoW/oshka";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}