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