about summary refs log tree commit diff
path: root/pkgs/development/tools/gosca/default.nix
blob: 18459ec9432223580c0d0facb0bd0cf1daae8008 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildGoModule
, fetchFromGitHub
, gosca
, testers
}:

buildGoModule rec {
  pname = "gosca";
  version = "0.4.2";

  src = fetchFromGitHub {
    owner = "TARI0510";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-mjQSYkcLl9X3IPv0liX26hvystsQOSVXvovKp4VekAY=";
  };

  vendorSha256 = "sha256-0EqMW4aNYPZEuk+mxmLTuenGdam56YneEad8lodVeBo=";

  passthru.tests.version = testers.testVersion {
    package = gosca;
    command = "gosca -v";
    version = "GoSCA_v${version}";
  };

  meta = with lib; {
    description = "Golang dependence security checker";
    homepage = "https://github.com/TARI0510/gosca";
    changelog = "https://github.com/TARI0510/gosca/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}