1 { stdenv, lib, fetchFromGitHub, makeWrapper, docker, coreutils, procps, gnused, findutils, gnugrep }:
5 stdenv.mkDerivation rec {
7 version = "unstable-2015-10-5";
9 src = fetchFromGitHub {
12 rev = "b0cc52aa3da2e2ac0080794e0be6e674b1f063fc";
13 sha256 = "07wf9yn0f771xkm3x12946x5rp83hxjkd70xgfgy35zvj27wskzm";
16 nativeBuildInputs = [ makeWrapper ];
21 chmod +x $out/bin/docker-gc
22 wrapProgram $out/bin/docker-gc \
23 --prefix PATH : "${lib.makeBinPath [ docker coreutils procps gnused findutils gnugrep ]}"
27 description = "Docker garbage collection of containers and images";
28 mainProgram = "docker-gc";
29 license = licenses.asl20;
30 homepage = "https://github.com/spotify/docker-gc";
31 maintainers = with maintainers; [offline];
32 platforms = docker.meta.platforms;