docker-slim: 1.39.0 -> 1.40.0

https://github.com/slimtoolkit/slim/releases/tag/1.40.0
This commit is contained in:
Mario Rodas 2023-01-27 04:20:00 +00:00
parent 77cd80a47c
commit 550f0267a8

View File

@ -1,21 +1,21 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper }:
buildGoModule rec {
pname = "docker-slim";
version = "1.39.0";
version = "1.40.0";
src = fetchFromGitHub {
owner = "docker-slim";
repo = "docker-slim";
owner = "slimtoolkit";
repo = "slim";
rev = version;
sha256 = "sha256-CN3mvXjI6c10yvXM2owWASngsU2PjgLhd1N55vxubw0=";
sha256 = "sha256-KbwkZIGkAdzPPo5CrWKnKzFsD8OUONk6JWo1wzwti3s=";
};
vendorSha256 = null;
subPackages = [ "cmd/docker-slim" "cmd/docker-slim-sensor" ];
subPackages = [ "cmd/slim" "cmd/slim-sensor" ];
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeBinaryWrapper ];
ldflags = [
"-s"
@ -27,13 +27,13 @@ buildGoModule rec {
# docker-slim tries to create its state dir next to the binary (inside the nix
# store), so we set it to use the working directory at the time of invocation
postInstall = ''
wrapProgram "$out/bin/docker-slim" --add-flags '--state-path "$(pwd)"'
wrapProgram "$out/bin/slim" --add-flags '--state-path "$(pwd)"'
'';
meta = with lib; {
description = "Minify and secure Docker containers";
homepage = "https://dockersl.im/";
changelog = "https://github.com/docker-slim/docker-slim/raw/${version}/CHANGELOG.md";
homepage = "https://slimtoolkit.org/";
changelog = "https://github.com/slimtoolkit/slim/raw/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ Br1ght0ne marsam mbrgm ];
};