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