1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "oshka";
8 version = "0.4.1";
9
10 src = fetchFromGitHub {
11 owner = "k1LoW";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "sha256-fpWhqFK5h/U7DCC/SyhAlMyCMhjZHRLMlwakvlhOd3w=";
15 };
16
17 vendorHash = "sha256-ZBI3WDXfJKBEF2rmUN3LvOOPT1185dHmj88qJKsdUiE=";
18
19 ldflags = [
20 "-w"
21 "-s"
22 "-X github.com/k1LoW/oshka/version.Version=${version}"
23 ];
24
25 # Tests requires a running Docker instance
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Tool for extracting nested CI/CD supply chains and executing commands";
30 mainProgram = "oshka";
31 homepage = "https://github.com/k1LoW/oshka";
32 license = licenses.mit;
33 maintainers = with maintainers; [ fab ];
34 };
35}