12 src = fetchFromGitHub {
13 owner = "slimtoolkit";
16 hash = "sha256-X+1euWp4W53axbiBpL82bUPfod/JNhGVGWgOqKyhz6A=";
26 nativeBuildInputs = [ makeBinaryWrapper ];
35 "-X github.com/slimtoolkit/slim/pkg/version.appVersionTag=${version}"
36 "-X github.com/slimtoolkit/slim/pkg/version.appVersionRev=${src.rev}"
39 # docker-slim tries to create its state dir next to the binary (inside the nix
40 # store), so we set it to use the working directory at the time of invocation
42 wrapProgram "$out/bin/slim" --add-flags '--state-path "$(pwd)"'
46 description = "Minify and secure Docker containers";
47 homepage = "https://slimtoolkit.org/";
48 changelog = "https://github.com/slimtoolkit/slim/raw/${version}/CHANGELOG.md";
49 license = licenses.asl20;
50 maintainers = with maintainers; [