Merge pull request #112906 from 06kellyjac/dockle
dockle: init at 0.3.1
This commit is contained in:
commit
8a7eadc708
43
pkgs/development/tools/dockle/default.nix
Normal file
43
pkgs/development/tools/dockle/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, lvm2 }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "dockle";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "goodwithtech";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Zc2ZlyeWdRvyuJLDDTONfh0/q+HKR4lNtSFMjgJWrRY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-4IJKXcnMXBqoEjsV4Xg2QYvKwxDDUjcZtrj9IRuT6i4=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ btrfs-progs lvm2 ];
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# Remove tests that use networking
|
||||
rm pkg/scanner/scan_test.go pkg/utils/fetch_test.go
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://containers.goodwith.tech";
|
||||
changelog = "https://github.com/goodwithtech/dockle/releases/tag/v${version}";
|
||||
description = "Container Image Linter for Security";
|
||||
longDescription = ''
|
||||
Container Image Linter for Security.
|
||||
Helping build the Best-Practice Docker Image.
|
||||
Easy to start.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jk ];
|
||||
};
|
||||
}
|
@ -297,6 +297,8 @@ in
|
||||
|
||||
docker-sync = callPackage ../tools/misc/docker-sync { };
|
||||
|
||||
dockle = callPackage ../development/tools/dockle { };
|
||||
|
||||
docui = callPackage ../tools/misc/docui { };
|
||||
|
||||
dotfiles = callPackage ../applications/misc/dotfiles { };
|
||||
|
Loading…
Reference in New Issue
Block a user