git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #112906 from 06kellyjac/dockle

dockle: init at 0.3.1

commit8a7eadc7082fbc56273484327ba974a1535bcc94 authorSandro <sandro.jaeckel@gmail.com> dateSat 13 Feb 2021, 01:09 (6 years ago) parent31fe327a66a0f8
2 files changed+45
pkgs/development/tools/dockle/default.nix+43 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/dockle/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ lib, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, lvm2 }:
2+
3+buildGoModule rec {
4+ pname = "dockle";
5+ version = "0.3.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "goodwithtech";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "sha256-Zc2ZlyeWdRvyuJLDDTONfh0/q+HKR4lNtSFMjgJWrRY=";
12+ };
13+
14+ vendorSha256 = "sha256-4IJKXcnMXBqoEjsV4Xg2QYvKwxDDUjcZtrj9IRuT6i4=";
15+
16+ nativeBuildInputs = [ pkg-config ];
17+ buildInputs = [ btrfs-progs lvm2 ];
18+
19+ buildFlagsArray = [
20+ "-ldflags="
21+ "-s"
22+ "-w"
23+ "-X main.version=${version}"
24+ ];
25+
26+ preCheck = ''
27+ # Remove tests that use networking
28+ rm pkg/scanner/scan_test.go pkg/utils/fetch_test.go
29+ '';
30+
31+ meta = with lib; {
32+ homepage = "https://containers.goodwith.tech";
33+ changelog = "https://github.com/goodwithtech/dockle/releases/tag/v${version}";
34+ description = "Container Image Linter for Security";
35+ longDescription = ''
36+ Container Image Linter for Security.
37+ Helping build the Best-Practice Docker Image.
38+ Easy to start.
39+ '';
40+ license = licenses.asl20;
41+ maintainers = with maintainers; [ jk ];
42+ };
43+}
pkgs/top-level/all-packages.nix+2
@@ -297,6 +297,8 @@ in
297297
298298 docker-sync = callPackage ../tools/misc/docker-sync { };
299299
300+ dockle = callPackage ../development/tools/dockle { };
301+
300302 docui = callPackage ../tools/misc/docui { };
301303
302304 dotfiles = callPackage ../applications/misc/dotfiles { };