1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/applications/virtualization/docker/gc.nix

34 lines
929 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, makeWrapper, docker, coreutils, procps, gnused, findutils, gnugrep }:
with lib;
stdenv.mkDerivation rec {
name = "docker-gc-${rev}";
rev = "b0cc52aa3da2e2ac0080794e0be6e674b1f063fc";
src = fetchFromGitHub {
inherit rev;
owner = "spotify";
repo = "docker-gc";
sha256 = "07wf9yn0f771xkm3x12946x5rp83hxjkd70xgfgy35zvj27wskzm";
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp docker-gc $out/bin
chmod +x $out/bin/docker-gc
wrapProgram $out/bin/docker-gc \
2016-08-22 23:06:51 +01:00
--prefix PATH : "${stdenv.lib.makeBinPath [ docker coreutils procps gnused findutils gnugrep ]}"
'';
meta = {
description = "Docker garbage collection of containers and images";
license = licenses.asl20;
homepage = https://github.com/spotify/docker-gc;
maintainers = with maintainers; [offline];
platforms = docker.meta.platforms;
};
}